Sep-13-2017, 08:35 PM
Ok, so that output at least matches your code.
Here's what's in the image:
Here's what's in the image:
Output:How much is the bill? 100
What percentage of the tip would you like to enter? 10
Tip added is 10
Your total bill is 1106.0
bill * tippy
is 100 * 10
, which is 1000. Before you calculate the total, you should create a percentage based off the tip, maybe...tip_percent = tippy / 100.0 print(bill * tip_percent)Then use that, instead of tippy in the actual calculation.