This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
celtemp = raw_input("What is the temperature in Celsius?") | |
farentemp = (int(celtemp) * 9)/ 5 + 32 | |
print str(farentemp) + "degrees Fahrenheit" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kgweight = raw_input("What is the weight in kilograms?") | |
usweight = (float(kgweight) * 2.2046) | |
print str(usweight) + " lbs" |