Andre Jeyarajan andrejeyara...@rogers.com wrote
Write two functions that will convert temperatures
back and forth from the Celsius and Fahrenheit temperature
scales (using raw_input)
If we ignore the raw_input bit you have done what you were asked.
def C_F(x):
y = (x-32)*(5.0/9)
Write two functions that will convert temperatures
back and forth from the Celsius and Fahrenheit temperature scales (using
raw_input)
def C_F(x):
y = (x-32)*(5.0/9)
print y
def F_C(x):
y = (x*9.0/5)+32
print y
I have created the two functions but I don’t know what to do from
On 11/28/2010 8:33 PM, Andre Jeyarajan wrote:
Write two functions that will convert temperatures back and forth from
the Celsius and Fahrenheit temperature scales (using raw_input)
def C_F(x):
y = (x-32)*(5.0/9)
print y
def F_C(x):
y = (x*9.0/5)+32
print y
I have created