In normal cases, you can write backslash \
or parentheses ()
.
e = 'a' + 'b' + \
'c' + 'd'
e = ('a' + 'b' +
'c' + 'd')
if a == True and \
b == False :
...
If you're just passing the parameter, you can use it as follows
myfunc(param1, param2,
param3, param4,
param5, param6)
However, if
statements do not support the method of writing parentheses
For if
, you can only write \
.
See python style guide - maximum line length
© 2024 OneMinuteCode. All rights reserved.