Python Forum
Help with simple tip calculator
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with simple tip calculator
#6
You should use a version so this work.
Which mean 3.6 or preferably 3.7.
price_meal = float(input("How much did your meal cost? "))
tip = float(input("How much do you want to tip, in decimal form? "))
price_meal += price_meal + tip
print(f'Your total cost is {price_meal:.2f}.')
f-string is the newest way.
Install for Windows Python 3.6/3.7 and pip installation under Windows,
for Linux so comes newer distros like Ubuntu 18.10 and Mint 19 with Python 3.6.5 as default install.
Reply


Messages In This Thread
Help with simple tip calculator - by DragonG - Oct-23-2018, 12:21 AM
RE: Help with simple tip calculator - by ichabod801 - Oct-23-2018, 01:28 AM
RE: Help with simple tip calculator - by ichabod801 - Oct-23-2018, 01:32 AM
RE: Help with simple tip calculator - by DragonG - Oct-23-2018, 02:57 AM
RE: Help with simple tip calculator - by ichabod801 - Oct-23-2018, 03:19 AM
RE: Help with simple tip calculator - by snippsat - Oct-23-2018, 04:54 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Simple Calculator Help destr0yer667 1 4,446 May-22-2019, 02:11 PM
Last Post: ichabod801
  Python Program to Make a Simple Calculator jack_sparrow007 2 12,541 Oct-19-2018, 08:32 AM
Last Post: volcano63
  Need help with simple calculator. ghost0fkarma 3 3,626 Sep-11-2018, 07:40 PM
Last Post: woooee

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020