#type() : 어떤 자료형인지 알려주는 함수
#int() : 정수로 바꾼다
n1 = '10'
print(type(n1))
n1 = int(n1)
print(type(n1))
#float() : 실수로 바꾼다
n2 = '3.5'
print(type(n2))
n2 = float(n2)
print(type(n2))
#str() : 문자열로 바꾼다
n3 = 2025
print(type(n3))
n3 = str(n3)
print(type(n3))
#list() : 리스트로 바꾼다
s1 = 'apple'
print(s1)
print(list(s1))
print('----문제1----')
a = '7'
b = 3
a = int(a)
print(a + b)
To embed this project on your website, copy the following code and paste it into your website's HTML: