Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Kelvin to Fahrenheit
#2
Nice for your first code, some minor adjustments can be made though. First,
Code:
print "Kelvin to Fahrenheit Converter by Bradley"
print
print
==
Code:
print "Kelvin to Fahrenheit Converter by Bradley\n\n"
All the empty prints can be substituted with a \n.
Next:
Code:
Kelvin = int(raw_input("Enter Kelvin:  "))
It is best to use floats rather than ints for better accuracy:
Code:
Kelvin = float(raw_input("Enter Kelvin:  "))
[Image: izsyo6.jpg]


Reply


Messages In This Thread
Kelvin to Fahrenheit - by Apache - 05-29-2010, 06:20 PM
RE: Kelvin to Fahrenheit - by uber1337 - 05-30-2010, 06:36 AM
RE: Kelvin to Fahrenheit - by Apache - 05-30-2010, 08:23 AM
RE: Kelvin to Fahrenheit - by alfonzo1955 - 05-30-2010, 10:13 AM
RE: Kelvin to Fahrenheit - by Apache - 05-30-2010, 01:03 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)