Re: Python code

  • From: "Richard Dinger" <rrdinger@xxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Wed, 16 Sep 2009 09:13:47 -0700

What is the Python error message?

----- Original Message ----- From: "Edward" <personal.edward@xxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Tuesday, September 15, 2009 8:05 PM
Subject: Python code


Hello all,

I am not sure what I did wrong but I wrote this small program in python for class. I think I made a syntax error. If someone doesn't mind checking my
code I would greatly appreciate it.

Code start
print "welcome to cheap foods"
price1=input("enter the first price.")
price2=input("the second price")
price3=input("enter the third price")
price4=input("enter the fourth price")
price5=input("enter the fith price")
print price1,price2,price3,price4,price5
subtotal=price1+price2+price3+price4+price5
print "your subtotal is..." subtotal
tax=.06*subtotal
print "your tax is"tax
total=subtotal+tax
print "your total is..."total


__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind



__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: