pantagrel/uw_python — pull request #1 by dalanmiller (2012-11-12 08:33:29+00:00)
Title: Just a couple suggestions / help

Hey Pantagrel,

Stumbled across your Github profile when looking around mine and saw people following me and just wanted to say hello with a little pull request. I don't mean to be critical since I'm no master Python charmer just yet but just a couple things I saw.

* Don't use `str` as a variable name, if you do you will replace the builtin function str() and you might not be able to convert things to strings in the same function! (I think!)
* [The Python 'standard' says that you should indent by four spaces]((http://www.python.org/dev/peps/pep-0008/#indentation), it's kinda nit-picky but it's kind of one of the cool but retentive things about Python in terms of code style for readability.
* You can increment integers like so, `i += 1` rather than `i = i + 1` , there really is no difference in outcome but most I've seen is `+=1`
* In your comments you said you were looking for a way to stop in a loop and start the next iteration, [I think what you're looking for is the `continue` statement](http://docs.python.org/2/tutorial/controlflow.html#break-and-continue-statements-and-else-clauses-on-loops). Run the example they show with odd/even numbers.

I've also been helping out [Andreas](https://github.com/Stassi/uw_py-hw) here and there, feel free to email me / gchat anytime if you have a question! And if this whole pull request thing doesn't make sense, [you can click here](https://github.com/dalanmiller/uw_python-1/commit/51d7ea2357902cc62e0017160b73461fed89c7e9) to see my suggestions.

[Daniel](mailto:dalan.miller@gmail.com)