Kelvin to Fahrenheit - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18) +---- Forum: Python Programming Language (https://www.supportforums.net/forumdisplay.php?fid=32) +---- Thread: Kelvin to Fahrenheit (/showthread.php?tid=7457) |
Kelvin to Fahrenheit - Apache - 05-29-2010 My first python script that I wrote entirely on my own. Celsius to Fahrenheit, and Fahrenheit to Celsius have been done a billion times, so I tried to be a bit more creative. Code: print "Kelvin to Fahrenheit Converter by Bradley\n\n" So, the sun is roughly 5,000 degrees kelvin. Exactly 8.540.6 degrees Fahrenheit. The average temperature where I live right now is around ~303 Kelvin. I checked the program with an online converter and it was exact. RE: Kelvin to Fahrenheit - uber1337 - 05-30-2010 Nice for your first code, some minor adjustments can be made though. First, Code: print "Kelvin to Fahrenheit Converter by Bradley" Code: print "Kelvin to Fahrenheit Converter by Bradley\n\n" Next: Code: Kelvin = int(raw_input("Enter Kelvin: ")) Code: Kelvin = float(raw_input("Enter Kelvin: ")) RE: Kelvin to Fahrenheit - Apache - 05-30-2010 Thanks, I'll make note RE: Kelvin to Fahrenheit - alfonzo1955 - 05-30-2010 Looks nice, you should make it 273.15 for more accuracy. RE: Kelvin to Fahrenheit - Apache - 05-30-2010 (05-30-2010, 10:13 AM)alfonzo1955 Wrote: Looks nice, you should make it 273.15 for more accuracy. Thanks. Added |