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

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

#if-else문
'''
if 조건:
    조건이 맞을 때 실행할 코드
else:
    조건이 틀렸을 때 실행할 코드
'''
number = 12334

if number % 2 == 0:
    print('짝수입니다')
else:
    print('홀수입니다')

print('----문제1----')
score = int(input())

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

print('----문제2----')
age = int(input())

if age >= 8 and age < 20:
    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: