Can I copy/paste Python code?

ryguy7272 ryanshuell at
Tue Jul 21 17:18:19 CEST 2015

On Monday, July 20, 2015 at 10:50:09 PM UTC-4, ryguy7272 wrote:
> I'm trying to copy some Python code from a PDF book that I'm reading.  I want to test out the code, and I can copy it, but when I paste it into the Shell, everything is all screwed up because of the indentation. Every time I paste in any kind of code, it seems like everything is immediately left-justified, and then nothing works.
> Any idea how to make this work easily?  Without re-typing hundreds of lines of code...
> Thanks to all.

Thanks for all the help everyone!!

More information about the Python-list mailing list