#숫자형 - 정수int
num1 = 21
print(type(num1)) #type() 자료형

#숫자형 - 실수float
num2 = 4.0
print(type(num2))

#문자열 str
str1 = '안녕'
str2 = "하세요"
print(type(str1))
print(type(str2))

#리스트 list
list1 = [2, 5, 9, 'a', [2, 1]]
print(type(list1))

'''
변수 이름 규칙
1. 알파벳, 한글, 숫자, _로만 구성할 수 있다
2. 숫자로 시작할 수 없다
3. 파이썬 예약어(for, while, if 등)는 사용할 수 없다
4. 빈칸이나 연산자(+,-,*,/)는 사용할 수 없다
'''

Embed on website

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