--- 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
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up