![]() |
|
#1
|
||||
|
||||
Python script: Celsius to FahrenheitI wrote a few little scripts to showcase how Python works for simple problems. They don't do anything major; they're just to showcase Python syntax in action so you can compare it to other languages.
The first program is a simple temperature convertor, from Celsius to Fahrenheit. Feel free to use and abuse this script if you want; just copy it and save it with a .py extension. Run it however you run a Python script, normally calling python foo.py on the command line. Python Code:
__________________
Start Programming with Python-A beginner's guide to programming and the Python language. ------------- Common Sense v2.0-Striving to make the world a little bit smarter. |
Recent GIDBlog
Stupid Management Policies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Issues converting Fahrenheit to celsius | Skampy | C++ Forum | 7 | 25-Feb-2006 09:04 |
| Re: Beginning Python Tutorial (Part 9) | crystalattice | Python Forum | 0 | 19-Feb-2006 02:04 |
| First prog, using functions that pass values... | boousaf | C Programming Language | 2 | 27-Sep-2005 17:10 |
| Re: Beginning Python Tutorial (Part 2) | crystalattice | Python Forum | 2 | 31-Jul-2005 13:25 |
| Two virtual hosts, cgi script behaves differently on each | blimbo | Apache Web Server Forum | 0 | 04-Aug-2004 10:35 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The