How do you prefer to split a long string in parts and concatenate them so as to avoid E501 and comply with PEP8? | Sololearn: Learn to code for FREE!

+1

How do you prefer to split a long string in parts and concatenate them so as to avoid E501 and comply with PEP8?

Comma, +? Depends on the situation? Multiple print lines written on some log file? Docstrings, unless they're meant to be used under function definitions? (Are they?) If it depends, which do you think is better when? I've seen something elsewhere about avoiding + concatenation if possible, that it reduces readability and is prone to errors later on. And I have two very long strings.

4/22/2022 3:45:34 PM

Korkunç el Gato

2 Answers

New Answer

0

FF9900 Thank you for clearing that one up :-)