i tried to use this code to make a simple temp converter between Celcius and Farenheit....My code :
value=raw_input("Temperature Reading= ")
check=value[-1]
c=int(value[:-1])
if check =='c' or 'C':
print (9*c/5)+32,'F'
if check =='f' or 'F':
print 5*(c-32)/9,'C'
raw_input("Press <Enter> to exit!")
the problem with this is that if the user inputs for example 50f it prints both of them in the 'if' functions. I need to correct it. thanks :)