#if문 
'''
if 조건:
    실행할 코드
'''

날씨 = '비'

if 날씨 == '비':
    print('우산을 쓴다')

#if-else문
'''
if 조건:
    조건이 참일 때 실행할 코드
else:
    조건이 거짓일 때 실행할 코드
'''
num = 178248762112

if num % 2 == 0:
    print('짝수')
else:
    print('홀수')

print('----문제----')
score = 89

if score >= 60:
    print('합격')
else:
    print('불합격')

print('----숙제----')
age = 10
if age >= 8:
    print('학교를 다닙니다')
else:
    print('학교를 다니지 않습니다')









Embed on website

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