tip calculator | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

tip calculator

At the course of Python for the beginners, why do I need to remeve "What's the bill?" for the code to run? Here is my code: bill = float(input("What's the bill?")) amount = bill * 20 / 100 final_amount = float(amount) print(final_amount)

23rd Feb 2022, 7:45 PM
Olivia None
3 Answers
+ 2
Simply remove the string inside of the input function
23rd Feb 2022, 8:33 PM
Lisa
Lisa - avatar
0
Because it provides unneccisary output
23rd Feb 2022, 7:48 PM
Slick
Slick - avatar
0
Thank you for your answers!
24th Feb 2022, 3:44 PM
Olivia None