I am learning Python. I have a fundamental doubt about the "try--except--else--finally" statement sequence.
As I understand if code in 'try' goes through then code in 'else' will also get executed. If that is the case, what is the need for 'else' block? Whatever code is under 'else' block can be in 'try' block itself.
Appreciate clarifications