def farh(cel):
return (cel *(9/5)) + 32
while True:
c = int(input("Enter celcius to convert in farhrenhite :"))
f = farh(c)
print("Fahreheit Temperature is " + str(f))
Fahrenheit to Celsius Python
#!/usr/bin/env python
Fahrenheit = int(raw_input("Enter a temperature in Fahrenheit: "))
Celsius = (Fahrenheit - 32) * 5.0/9.0
print "Temperature:", Fahrenheit, "Fahrenheit = ", Celsius, " C"
c= int(input(" Temperature in Centigrade: "))
f= (9/5*(int(c))) +32
print(" Temperature in Fahrenheit: ", f)
celsius = float(input("Enter temperature in celsius: "))
fahrenheit = (celsius * 9/5) + 32
print('%.2f Celsius is: %0.2f Fahrenheit' %(celsius, fahrenheit))