print('Hello world!') #hello world를 출력하는 명령어다.
'''
작은 따옴표 안에 쓴 글은 주석이다.
'''
"""
큰 따옴표 안에 쓴 글 또한 주석이다.
"""

print('안녕하세요') #출력하는 명령어
age = 15 #숫자
name = '김알고' #문자열 
score = [100, 80, 70, 90, 85] #리스트
print(age)
print(name)
print(score)

print(10 + 5)
value = 100 / 5 - 10
print(value)
print(2**3) #2의 3제곱 

print('안녕' + '하세요')
str = '안녕' * 3
print(str)
str2 = 'hi'
print(str2 * 4)

a = "abcdef"
b = [1,2,3,4]
#인덱싱
print(a[2])
print(b[2])
#슬라이싱
print(b[1:3]) #1번째부터 3번째 이전까지

c = 10
if c >= 10:
    print('참입니다.')




Embed on website

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