# type() : 어떤 자료형인지 알려주는 함수

# 자료형(값)

#int() : 정수로 변환
num1 = '10'
print(type(num1))
num1 = int(num1)
print(type(num1))

#float() : 실수로 변환
print(float(3))

#str() : 문자열로 변환
num2 = 2025
print(type(num2))
num2 = str(num2)
print(type(num2))

#list() : 리스트 변환
print('apple')
print(list('apple'))








Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: