First working python code!

OK, so I decided I would write a temp converter for my first python program. It took me a few tries but it’s running now. It’s probably not the best way to code it, and I don’t have error handling in it but it runs!

Next steps:

  • Throw in an if statement for anything below absolute zero to return a message and exit
  • Return comment in response to an if statement for appropriate clothing to wear at the temperature entered
  • Error handling

If you have ideas of easy things to code for me to practice please let me know. I’ve already got one idea of a countdown to a specific day for a former coworker’s retirement so I may work on that this weekend too.

Code: http://pastebin.com/ZAtqqbab

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s