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

a = 11
if a >= 10:
    print('a는 10 이상이다')

#if-else문
'''
if 조건:
    조건이 참일 때 실행할 코드
else:
    조건이 거짓일 때 실행할 코드
'''
b = 1001
if b <= 1000:
    print('b는 1000 이하')
else:
    print('b는 1000 초과')


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


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