-1
Since python is indent sensitive when Voce deletes a structure for example that sees that it will not use it anymore it starts to give error because the rest of the code is not indented as it should, to indent it is only select the code you want and give tab, but to get it all back to a left space at once, how to do?
This has nothing to do with Python, it is a feature of the program you are using to edit code. Anyway, can [Dit] the post and give more details, always taking into account the site scope.
– Bacco
Identation It’s your program - if the "rest of the code isn’t indented as it should be", you don’t have a valid program. How you devise and disintegrate blocks of code is not something from the lingugem, but a tool from the editor you are using to program. The vast majority of code editors fail by pressing "shift + tab" with the selected block. (alias, that’s why the tab key, on most keyboards, has an arrow to the front and one to the back, indicating that it also disindentates)
– jsbueno