View Single Post
Old Jan 17th, 2006, 11:24 PM   #2
Jessehk
The Oblivious One
 
Jessehk's Avatar
 
Join Date: May 2005
Location: Ontario, Canada
Posts: 639
Rep Power: 4 Jessehk is on a distinguished road
Just one quick suggestion: instead of getting the operator, and getting user input for every operator, why not get the operator, get the input, and then apply it to the operator?

eg:

get operator
get input
apply operator
print result

and the answer to your problem:

the correct form is :

if condition:
     #do stuff
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS!
Jessehk is offline   Reply With Quote