DEV Community

loading...

Discussion on: Python beyond PEP8

edelvalle profile image
Eddy Ernesto del Valle Pino Author

Yes, you can do something like....

some_stirng = (
    "Bla bla bla bla. "
    "More bla bla bla bla. "
    "More bla bla bla bla"
)

Or use multi-line strings, but usually they are inconvenient because they will get the spaces from the indentation.

Thread Thread
edelvalle profile image
Eddy Ernesto del Valle Pino Author

But keep in mind that this is about taste mostly and subjective, so do what ever you feel fits you and your team...

Thread Thread
Sloan, the sloth mascot
Comment deleted
j0nimost profile image
John Nyingi

I agree