+ 1

Whats wrong with my code ?

Its the skee ball challenge and I've tried this code but all outputs are zero ,i don't know why. score= input(int()) price = input (int ()) if score >= 12: ticket = score/12 if ticket >= price : print ("Buy it") else : print ("Try again")

23rd Aug 2020, 10:03 PM
Max Lwe
Max Lwe - avatar
4 Réponses
+ 2
int(input()) print("Buy it!")
23rd Aug 2020, 10:30 PM
Steven M
Steven M - avatar
+ 5
1- Please review: https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2426/ 2- As ChaoticDawg pointed out, your logic is wrong. 3- You are missing a "!" after "Buy it". Take a closer look at the challenge description.
23rd Aug 2020, 10:34 PM
Kevin ★
+ 3
No output if score is less than 12 score = int(input()) price = int(input()) ticket = score/12 if ticket >= price: print('Buy it!') else: print('Try again')
23rd Aug 2020, 10:28 PM
ChaoticDawg
ChaoticDawg - avatar
+ 1
Yea i see it now just one of the five is not correct
23rd Aug 2020, 10:37 PM
Max Lwe
Max Lwe - avatar