Is there an easy way to control indents in Python

Dan Stromberg drsalists at gmail.com
Tue Oct 14 22:38:15 EDT 2014


On Tue, Oct 14, 2014 at 7:13 PM, ryguy7272 <ryanshuell at gmail.com> wrote:
> I'm just learning Python.  It seems like indents are EXTREMELY important.  I guess, since there are no brackets, everything is controlled by indents.  Well, I'm reading a couple books on Python now, and in almost all of the examples they don't have proper indents, so when I copy/paste the code (from the PDF to the IDE) the indents are totally screwed up.  I'm thinking that there should be some control, or setting, for this.  I hope.  :)

Perhaps if you share a screenshot of your PDF and the name of your PDF
viewer, we can help you more.

Here's a URL about Python and Whitespace:
http://stromberg.dnsalias.org/~strombrg/significant-whitespace.html



More information about the Python-list mailing list