# Carlos Solano first_item = input("Cost of item 1: ") print(first_item) second_item = input("cost of item 2: ") print(second_item) third_item = input("cost of item 3: ") print(third_item) fourth_item = input("cost of item 4: ") print(fourth_item) fifth_item = input("cost of item 5: ") print(fifth_item) totalcost = first_item + second_item + third_item + fourth_item + fifth_item taxsale = totalcost * 0.06 totalgrand = taxsale + totalcost print "Sale total: ", totalcost print "total tax: ", taxsale print "Your total cost is: ", totalgrand
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