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

13th Apr 2020, 7:19 AM
Aditya Thorat
7 ответов
13th Apr 2020, 7:20 AM
Gordon
Gordon - avatar
+ 2
Can you show us the code? I'm sure there is a way.
13th Apr 2020, 7:21 AM
HonFu
HonFu - avatar
+ 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
13th Apr 2020, 7:59 AM
HonFu
HonFu - avatar
+ 1
Is this what you are looking for? https://code.sololearn.com/cxjf1yESNU83/?ref=app
14th Apr 2020, 1:38 PM
Ishmam
Ishmam - avatar
0
https://code.sololearn.com/c49bEIYqPDTs/?ref=app Line 53 of the code
13th Apr 2020, 7:24 AM
Aditya Thorat
0
Pluto{^_^} yes this will do
17th Apr 2020, 5:27 AM
Aditya Thorat