When you make a tutorial how to write better code in Python, you should follow, you know, Python conventions how to write code. http://www.python.org/dev/peps/pep-0008/#whitespace-in-expre... The same with those oneline conditionals, lack of spacing between functions, etc. Following PEP8 (with --ignore=E5,W602) is useful (if not for you, then for others who will commit to your code) and easy (configure your ide).