--- title: 10.巢狀條件判斷語法的說明與實作 tags: python基礎語法與應用, 筆記 --- # 10.巢狀條件判斷語法的說明與實作 ## if...else ## if...elif...else score= float(input("請輸入成績")) if score >= 60: (Tab) print("PASS") else: (Tab)print("Fail") if score >= 90: (Tab) print("RANK A") elif score >= 80: (Tab)print("RANK B") elif score >= 70: (Tab)print("RANK C") else: (Tab)print("RANK D") →請輸入成績 72 PASS RANK C # END