method = input("Is it currently raining? ")
if method=="Yes" :
print("You should take the bus.")
else: distance = input("How far in km do you want to travel? ")
if distance == > 2:
print("You should walk.")
elif distance == < 10 :
print("You should take the bus.")
else:
print("You should ride your bike.")
NVM,我固定it..for那些誰擁有了同樣的問題,是對神交學習它只是一個縮進的問題,我忘了寫INT ...Python 3的語法錯誤
請不要更改你的問題中的代碼在你收到答案後。它使答案毫無意義。 – RichieHindle
@RichieHindle對不起,我不知道...我只需要仔細檢查我複製了正確的代碼...:0對不起 –
我已經回滾到您收到答案的代碼。 – Marcin