+ 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")
4 Réponses
+ 2
int(input())
print("Buy it!")
+ 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.
+ 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')
+ 1
Yea i see it now just one of the five is not correct