The Python Oracle

Proper indentation for multiline strings?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzling Curiosities

--

Chapters
00:00 Question
00:38 Accepted answer (Score 517)
01:55 Answer 2 (Score 356)
03:07 Answer 3 (Score 147)
03:52 Answer 4 (Score 35)
04:36 Thank you

--

Full question
https://stackoverflow.com/questions/2504...

Accepted answer links:
[textwrap]: http://docs.python.org/3/library/textwra...
[PEP 257]: http://www.python.org/dev/peps/pep-0257/

Answer 2 links:
[textwrap.dedent]: http://docs.python.org/library/textwrap....

Answer 3 links:
[inspect.cleandoc]: https://docs.python.org/3/library/inspec...
[commented]: https://stackoverflow.com/questions/2504...
[textwrap.dedent]: https://docs.python.org/2/library/textwr...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #string

#avk47