+ 2
Why this code fails in Test Case 3 ?
I am solving Skee Ball Challenge and I write this code but I don't know why it fails in Test Case 3. Explain me and give ur kind suggestions. Score = int(input()) GunPrice = int(input()) x = Score//12 if GunPrice < x : print ("Buy it!") elif GunPrice > x : print ("Try again")
2 Antworten
+ 12
You haven't considered the case of equality, i.e. When GunPrice==x
+ 2
Thanks 🌟(Pro)metheus 🇸🇬