#! /bin/env python
# A simple program to convert Celsius to Fahrenheit

freezing = 32 #Since freezing is 32F
celsius = input("Please enter the temperature in Celsius: ")
fahrenheit = 9 * celsius/5 + freezing
print "The temperature in Fahrenheit is", fahrenheit, "degrees"
Published in: Python
Download

Related snippets