Vinu Chandran
Vinu Chandran

Reputation: 325

How can I do a line break (line continuation) in Python for lines with multiple objects/functions in it?

With PEP 8 -- Style Guide for Python Code, the maximum line length should be 79 characters. I have a line like the following

object1.function1().function2().function3()

or

object1.object2.object3.function1()

which is more than 79 characters. How should I do a line break, in these cases?

Upvotes: 0

Views: 22

Answers (0)

Related Questions