0

How do I solve this 👇

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. Sample Input 50 Sample Output 10.0

6th Apr 2021, 3:31 PM
Joseph Muchunu
Joseph Muchunu - avatar
5 Answers
+ 1
Don’t put the math inside the input (). Get the input then do the math. Then print it.
6th Apr 2021, 4:21 PM
Jerry Hobby
Jerry Hobby - avatar
+ 4
Hi! First, please, show us your attempt!
6th Apr 2021, 3:33 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 2
Just take out 20% of bill amount And output it
6th Apr 2021, 3:45 PM
Hacker Badshah
Hacker Badshah - avatar
+ 1
tip=float(input (bill*20/100)) This is my attempt 👆â˜č
6th Apr 2021, 4:12 PM
Joseph Muchunu
Joseph Muchunu - avatar
+ 1
Thanks
6th Apr 2021, 8:11 PM
Joseph Muchunu
Joseph Muchunu - avatar