+ 1

Skee ball

point=int(input()) ticket=int(input()) if point>=480: if ticket>=40: print('Buy it!') else: print('Try again') Can any one help me what's wrong with my code while three are right and 2 are wrong and I can't se that what is wrong becuase it is lock

12th Oct 2024, 2:28 PM
Shekh mo Mustkim
Shekh mo Mustkim - avatar
4 Antworten
+ 2
I think you need to read the task again. Why can't the points be lower than 480?
12th Oct 2024, 2:35 PM
Ausgrindtube
Ausgrindtube - avatar
+ 3
Thank you, Ausgrindtube You were right,I made mistake but now I understand that the ticket input are buy price and we need to compare points that by converting into ticket can we buy it or not if not than try it..
12th Oct 2024, 4:16 PM
Shekh mo Mustkim
Shekh mo Mustkim - avatar
+ 1
Beccuase it need 40 ticket to buy and 12 points equal to 1 ticket so 480, Is these wrong
12th Oct 2024, 4:02 PM
Shekh mo Mustkim
Shekh mo Mustkim - avatar
0
Happy to read that you figured it out! Well done and happy coding!
13th Oct 2024, 10:41 AM
Ausgrindtube
Ausgrindtube - avatar