Skip to content

Instantly share code, notes, and snippets.

@MikiYamFos
MikiYamFos / CelsiustoFarenheit
Last active August 29, 2015 14:00
A little Celsius to Fahrenheit Converter in Python
celtemp = raw_input("What is the temperature in Celsius?")
farentemp = (int(celtemp) * 9)/ 5 + 32
print str(farentemp) + "degrees Fahrenheit"
@MikiYamFos
MikiYamFos / kgtolbsconversion
Created April 19, 2014 17:15
kg to lbs converter in python
kgweight = raw_input("What is the weight in kilograms?")
usweight = (float(kgweight) * 2.2046)
print str(usweight) + " lbs"