Help guys, python language. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Help guys, python language.

When you go out to eat, you always tip 20% of the bill amount. But who’s got the time to calculate the right tip amount every time? Not you that’s for sure! You’re making a program to calculate tips and save some time. Your program needs to take the bill amount as input and output the tip as a float.

8th Dec 2021, 10:56 AM
Lyka Alessandra Magbuhos
3 Answers
+ 6
Lyka Alessandra Magbuhos , before we can help you, you should show us your attempt first. if you have not done a try by yourself upto now, please do so. Put your code in playground and link it here. thanks!
8th Dec 2021, 11:02 AM
Lothar
Lothar - avatar
+ 4
You can approach the task like this: * get input * convert input to numeric data type * calculate what is 20% of the input * output result
8th Dec 2021, 12:26 PM
Lisa
Lisa - avatar
+ 2
a=int(input()) b= a*20/100 print(b)
8th Dec 2021, 3:30 PM
Amirreza
Amirreza - avatar