#if : 만약 ~라면
'''
if 조건:
    실행할 코드
'''
날씨 = '☔'
if 날씨 == '☔':
    print('우산을 쓴다')

a = 10
if a >= 5:
    print('a는 5 이상입니다')
    print('a는 5 이상입니다')

#if-else문
'''
if 조건:
    조건이 맞을 때 실행할 코드
else:
    조건이 틀렸을 때 실행할 코드
'''
b = 2030
if b == 2025:
    print('b는 2025')
else:
    print('b는 2025가 아니다')

print('----문제----')
score = 10
if score >= 60:
    print('합격')
else:
    print('불합격')


print('----숙제----')
age = 12
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: