https://code.sololearn.com/cnkSXZZP1ETO/?ref=app | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

https://code.sololearn.com/cnkSXZZP1ETO/?ref=app

Can anyone tell me what's wrong in this code? You are playing a game at your local arcade, and you receive 1 ticket from the machine for every 12 points that you score. You want to purchase a squirt gun with your tickets. Given your score, and the price of the squirt gun (in tickets) are you able to buy it? Task Evaluate whether or not you have scored high enough to earn enough tickets to purchase the squirt gun at the arcade. Input Format The first input is an integer value that represents the points that you scored playing, and the second input is an integer value that represents the cost of the squirt gun (in tickets). Output Format A string that say 'Buy it!' if you will have enough tickets, or a string that says 'Try again' if you will not. Sample Input 500 40 Sample Output Buy it!

2nd Jul 2021, 11:44 AM
Md Akif Hossain
Md Akif Hossain - avatar
5 Answers
+ 5
Akif Hossain , ok i have found the task description. if you read it carefully, you will see that there are 2 inputs required. please try to rework your code. happy coding and good success!
2nd Jul 2021, 11:53 AM
Lothar
Lothar - avatar
+ 1
Akif Hossain , your code is working without any error. since you missed to post the task description, we are not able to help you.
2nd Jul 2021, 11:48 AM
Lothar
Lothar - avatar
+ 1
Thanks.. Now it works.. ☺️☺️
2nd Jul 2021, 11:58 AM
Md Akif Hossain
Md Akif Hossain - avatar
+ 1
Akif Hossain , you can add a task description by copying it where it is written, then go to your post and add it there .
2nd Jul 2021, 2:04 PM
Lothar
Lothar - avatar
0
how i added task description? I'm new here
2nd Jul 2021, 11:49 AM
Md Akif Hossain
Md Akif Hossain - avatar