type()

  • ์ž๋ฃŒ์˜ ํ˜•์‹์„ ํ™•์ธ ํ• ๋•Œ๋Š” type() ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉ

print(type("์•ˆ๋…•ํ•˜์„ธ์š”")) # <class 'str'>
print(type(273)) # <class 'int'>

Last updated

Was this helpful?