0
Indentation problem
I am having problem with indentation. My code involves a long equation and it is fixed to the left.I want it inside for loop. space doesnt help. Neither does tab. Line 53 of following code https://code.sololearn.com/c49bEIYqPDTs/?ref=app
7 ответов
+ 2
+ 2
Can you show us the code? I'm sure there is a way.
+ 2
You can use parentheses, when you need to break up a longer calculation.
Like this, only the beginning (x =) has to be properly indented, the rest you can do whatever you want.
x = (
y + z * a
/ b % c
)
Also, you can use the in-code escaping technique:
x = a \
* b \
+ c
Also in this case, the indentation only matters for the beginning.
See more details here:
https://code.sololearn.com/c9a0cG9dpVUr/?ref=app
+ 1
Is this what you are looking for?
https://code.sololearn.com/cxjf1yESNU83/?ref=app
0
https://code.sololearn.com/c49bEIYqPDTs/?ref=app
Line 53 of the code
0
Pluto{^_^} yes this will do