# if문
'''
if 조건:
실행할 코드
'''
num1 = 0
if num1 > 0:
print('num1 > 0')
# if - else문
'''
if 조건:
조건이 참일 때 실행할 코드
else:
조건이 거짓일 때 실행할 코드
'''
num2 = 15
if num2 % 2 == 0:
print('짝수')
else:
print('홀수')
# if - elif - else문
'''
if 조건1:
명령1
elif 조건2:
명령2
elif 조건3:
명령3
else:
명령N
'''
score = 85
if score >= 90:
print('A')
elif score >= 80:
print('B')
elif score >= 70:
print('C')
else:
print('F')
To embed this project on your website, copy the following code and paste it into your website's HTML: