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,我修复了它..对于那些有同样问题并且正在学习 Grok 的人来说,这只是一个缩进问题,我忘了写 int ......