Item1Price=float(raw_input('Please enter the price of the first item')) print(Item1Price) Item2Price=float(raw_input('Please enter the price of the second item')) print(Item2Price) Item3Price=float(raw_input('Please enter the price of the third item')) print(Item3Price) Item4Price=float(raw_input('Please enter the price of the fourth item')) print(Item4Price) Item5Price=float(raw_input('Please enter the price of the fifth item')) print(Item5Price) subtotal=(Item1Price+Item2Price+Item3Price+Item4Price+Item5Price) print(subtotal) salestax=.06*subtotal print(salestax) total=subtotal+salestax print(total)
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question