type()

  • 자료의 형식을 확인 할때는 type() 함수를 사용

print(type("안녕하세요")) # <class 'str'>
print(type(273)) # <class 'int'>

Last updated

Was this helpful?