赛马无效的语法?

时间:2017-09-29 21:17:12

标签: python printing syntax

我制作了这个程序,但是我在horse3之前的> =符号上获得了无效的语法,我试图用最短的时间打印马。再次感谢大家。

而True:

print ("Put in the time it took for all the horses to complete the race!""\n")

horse1 = float(input("Third Second's time: "))
horse2 = float(input("Glue Factory Vigilante's time: "))
horse3 = float(input("Dont forget Hoof Hearted's time: "))

if horse1 <= horse2 and <= horse3:
    print("Third Second Won!")

elif horse2 <= horse1 and <= horse3:
    print("Glue Factory Vigilanty Won!")

elif horse3 <= horse2 and <= horse1:
    print("Hoof Hearted Won!")

0 个答案:

没有答案