[Python] 조건문(if, ifelse, elseif)
#. if문if 조건식 : # if문은 들여쓰기에 민감 조건이 True일 경우 실행 # 들여쓰기의 유무로 참, 거짓을 구분조건이 False일 경우 실행 if문과 상관없이 출력 weight = 75 if weight>=90 : print('비만') print('정상')print('입니다') =============== RESTART: D:/Aaron/Q.py ===============정상입니다 #. if~else문 if 조건식 : 조건이 True일 경우 실행else : 조건이 False일 경우 실행 weight = 100 if weight>=90 : print('비만')else : print('정상')print('입니다') =============== RESTART: D:/Aaron/Q.py ======..
Python/Process
2019. 1. 24. 20:38