Oct-11-2017, 10:42 AM
(Oct-11-2017, 10:33 AM)buran Wrote:I agree completely, but left out the advice in the comment because:(Oct-11-2017, 10:26 AM)gruntfutuk Wrote: Some people (places) prefer to use spaces, some tabs. You need to be consistent. Do not mix them (you can set you editor to convert tabs to spaces). Some people use 2 spaces (2 space tabs) and some 4 spaces (4 space tabs). No doubt some people do 1, or 5, etc.
PEP8 is pretty clear:
Tabs or Spaces? - Spaces are the preferred indentation method.Tabs should be used solely to remain consistent with code that is already indented with tabs.
Indentation - Use 4 spaces per indentation level.
So, best would be to comply with the PEP...
- Didn't want to start a flame war on tabs vs spaces
- Thought introducing PEP8 to the OP would be confusing at their stage of learning
I am trying to help you, really, even if it doesn't always seem that way