Just like C, you can break a long line into multiple short lines. But in Python, if I do this, there will be an indent error… Is it possible?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From PEP 8 – Style Guide for Python Code:
Example of implicit line continuation:
On the topic of line breaks around a binary operator, it goes on to say:
Example of explicit line continuation: