a = [] #빈 리스트
b = [2, 10, 5 , 'd', [1, 2]]
print(b) #리스트 전체
print(b[1]) #인덱싱
print(b[2:4]) #슬라이싱
c = int(input('정수 하나를 입력하세요.\n')) #정수
d = input() #문자열
f = str(input()) #문자열
d = int(d) #형 변환
# float(), str(), list() - 형 변환 함수
print(3>2 and 4!=4)
print(3>2 or 4!=4)
print(not 3==3)
print(3>=1 and 3!=3 or 5<10)
i = 3
if i > 3:
print('hello')
if i > 3:
print('hello')
elif i == 3:
print('3')
else:
print('world')
num = int(input())
# if num < 0:
# num = num * -1
# print(num)
print(abs(num))
num2 = int(input())
if num2 % 2 == 0:
print("짝수입니다.")
else:
print("홀수입니다.")
To embed this project on your website, copy the following code and paste it into your website's HTML: