Typical use case of else block is with if in many programming languages.It usually serves as branch control such if it doesn’t meet certain conditions in if block it will just execute else block instead of if block.And it is the same case for python else block too. However, python extended else block usage more than the above.In python, you can actually use else block not only with if but also with for, while, try blocks.In that case, the name – else – could be quite misleading when used with for, while, try blocks.Since we automatically think of if-else we READ MORE