It's been a year since I invited Americans to join us in a *pledge to Share
the American Dream*:
1. Support organizations you feel are effectively helpin...
Monday, September 24, 2012
Python, Indentation, and Eclipse
I'm noticing that many of you are not being careful about consistent indentation. In Python, indentation is code. So, while the program might work if the then-part of an if-else is over-indented, this will cause problems later on when you add more code.
Also, don't use tabs! You can tell eclipse to only use spaces (instead of tabs) by going to Preferences, as shown in the images.
Labels:
opinion
Subscribe to:
Post Comments (Atom)


No comments:
Post a Comment