파이썬 기초 연습장/조건문
[파이썬 조건문] 중첩 if~else 구문 구하기
신령 가비
2022. 7. 19. 09:15
728x90
1 2 3 4 5 6 7 8 9 10 11 12 13 | # 중첩(ensted) if ~else구문 실습 # appleQulity = input("사과의 상태를 입력하시오(좋음, 나쁨)") if appleQulity == "좋음": applePrice = int(input("사과 한개당 가격 입력")) if applePrice < 1000: print("10개를 산다") else: print("5개를 산다.") else: print("사과를 안산다.") | cs |
728x90