+ 1
Tip calculation.
Hello everyone! Can you assist me with tip calculation , l am very stuck and struggling. Here is a bit of what l manged to write. bill = int(input(50)) #your code goes here tip = bill * 0.2 print(tip) But everytime l run the code it's telling me That the input is 125 and the expected out put is 25.0 but on the question it's written Sample input 50 Sample out put 10 Please help me to understand.
4 Answers
+ 2
Hey Su Mi , don't give input as 50 .
bill = int(input())
print(bill*0.2)
+ 1
Hi! no, the sample can be used, but not by you. your task is to write a universal program, for any case
+ 1
Thank you, iii l was having a really hard time.
0
Thank you so muchđ€, so when they wrote sample it was for example not necessarily to be used?