Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to convert fahrenheit to celsius in 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"
Source by www.pythonforbeginners.com #
 
PREVIOUS NEXT
Tagged: #convert #fahrenheit #celsius #python
ADD COMMENT
Topic
Name
3+8 =