this example is based on the one found in the "creating basic for loopsectionearlier in the howeverwhen user presses enter without typing somethingthe else clause is executed choose runrun module you see python shell window open and prompt asking for input type hello and press enter the application lists each character in the stringas shown in figure - repeat steps and howeversimply press enter instead of entering any sort of text you see the alternative message shown in figure - that tells you the string is blank figure - the else clause makes it possible to perform tasks based on an empty sequence it' easy to misuse the else clause because an empty sequence doesn' always signify simple lack of input an empty sequence could also signal an application error or other conditions that need to be handled differently from simple omission of data make sure you understand how the application works with data to ensure that the else clause doesn' end up hiding potential error conditionsrather than making them visible so that they can be fixed