day3-3 python (중첩 if 문과 elif문)
저번에 했던 if, else 문에서 print("Welcome to the rollercoaster!") height = int(input("What is your height in cm? ")) if height >= 120: print("You can ride the rollercoaster!") else: print("Sorry, you have to grow taller before you can ride.") 중첩 if 문 한번 더 선택의 갈림길이 주어진다. # 중첩 if문 print("Welcome to the rollercoaster!") height = int(input("What is your height in cm? ")) ###################################..
2023.02.22