Hi
Appreciate any help - why not getting any result from either print statement for celcius of farenheit
Thanks
Appreciate any help - why not getting any result from either print statement for celcius of farenheit
Code:
import re import os import string import sys def tempconvert(): c = "" f = "" print 'this program converts celcius to farenheit and visa versa' temp = raw_input ("enter f if you want Faren or c if you want celcius") degree = float(raw_input("enter temprature")) if temp == f: c = (degree - 32)* 5/9 print 'the temprature in celcius is %d' %c elif temp == c: f = (9/5 * degree) + 32 print 'the temprature in farenheit is %d' %f else: print 'if you see this , good , there is no error' tempconvert()
Comment