PandaWhoCodes / ThinkPython

ThinkPython Book Excercises
1 stars 1 forks source link

Formatting #1

Closed doraithodla closed 8 years ago

doraithodla commented 8 years ago

There is a document called PEP8 that describes how Python programs should be formatted. You can read it whenever you find some time (it is kind of a boring document to read). However, download the PEP8 utlity and run your sources through it and correct the formatting errors. Here are a couple.

  1. Spacecs around assignment operators
  2. Spaces around arithmetic operators
PandaWhoCodes commented 8 years ago

Code Reformatted. Please check if there are anymore of such formatting errors

doraithodla commented 8 years ago

It is not worth checking manually. You can run pep8 and check it. https://pypi.python.org/pypi/pep8