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

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

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

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

print('----문제1----')
score = 68 

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

print('----문제2----')
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: