[Tutor] Temperature Scales

Andre Jeyarajan andrejeyarajan at rogers.com
Mon Nov 29 02:33:45 CET 2010



 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 here.
Can you help?
Thanks





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20101128/b1ee7e0a/attachment.html>


More information about the Tutor mailing list