#변수:값을 저장하는 상자
name = '주현'
print(name)

number = 1004
print(number)

lst1 = [5, 6, 7, 8]
print(lst1)

#변수에 저장된 값을 바꿀 수 있다
number = 2094
number = 71
print(number)

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

print('-----예제1-----')
'''
점수가 50점이었다가 90점으로 바뀌었다
변수를 사용해 출력
변수이름은 score
'''

print('-----예제2-----')
'''
사과가 5개, 바나나가 3개 
과일의 총 개수를 변수로 저장하고 출력
변수에 저장된 값을 이용해서
apple = 
banana = 
total =      +
print(total)
'''

Embed on website

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