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 Réponses
+ 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
Aujourd'hui en vedette
.
1 Votes
What?
0 Votes
HTML
0 Votes
Quiz duel
0 Votes
Web
0 Votes
FRC Coding?
1 Votes
help
0 Votes
AI
2 Votes