Re: [Tutor] Beginner problem: name 'convertToFahrenheit' is not defined

2008-08-15 Thread Joseph Bae
Sorry! I copied the sample output from my command prompt incorrectly. Correct sample output: Enter A Number : 50 Convert to (F)ahrenheit or (C)elsius? C 50 Fahrenheit = 32 Celsius *50 *(not 32) Celsius = 147 Fahrenheit Joe On Fri, Aug 15, 2008 at 10:22 PM, Joseph Bae <[EMAIL PROTECTED]>

Re: [Tutor] Beginner problem: name 'convertToFahrenheit' is not defined

2008-08-15 Thread Joseph Bae
renheit or (C)elsius? C 50 Fahrenheit = 32 Celsius 32 Celsius = 147 Fahrenheit <-- shouldn't show up and 147 is too high ... This only happens when I tell it to convert to C, if I say F it works normally. I've debugged it with pdb.set_trace() many times but can't figure out what&

[Tutor] Beginner problem: name 'convertToFahrenheit' is not defined

2008-08-14 Thread Joseph Bae
Hi all, I'm new to Python (and programming in general) and need some help! Here is my code so far for a temperature conversion program (converts between Fahrenheit and Celsius): temp = input("Enter A Number : ") convertTo = raw_input("Convert To (F)ahrenheit or (C)elsius? : ") if convertTo ==