I have code like the following:
if condición:
if condición:
if confición:
else:
else:
else:
There are so many nested ifs that it far exceeds the 79 characters recommended by PEP 8 and how I want to make my code comply with the style rule.
How can I nest many if's and not exceed 79 characters?
With string it's easy, I use a \ and that's it, the same with parentheses...
I have found the solution:
Assuming I have to check:
I have changed it to:
What do you think of this solution?