Python: to Table or Not to Table

*NOTICE Code Snippets cannot be seen on WordPress Reader, must be viewed on original site ammccann.com

table

Tables! Where would we be without a couple good ol’ tables? This one’s chilly. Had a chance to play with some more formatting and loops. Don’t know where I’d be if it weren’t for a good loop.

The above code produces the output below:

windChill.PNG

If there’s one thing in life that’s constant it’s… CONSTANTS. Get it? Ha… haha, yeah here’s some code for that. =D

There was also some sentinel talk. You know, the Sentinel that forever was doomed to watch unmoving, with inaction, but forced to still observe. Oh no, not that one, just this one:

Fractional value. I really enjoyed getting to know about accumulators, and ranges implemented into a loop. There are so many different directions that you can take these concepts.

Who likes to calculate anyway? Seriously, though, these bite-sized programs are the part of a bigger picture that can produce a product. Here’s another table!

tempConvert

…and the code.

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