open python file window you see an editor in which you can type the example code type the following code into the window -pressing enter after each linevalue int(input("type number between and ")if (value and (value < )print("you typed"valueelseprint("the value you typed is incorrect!"as beforethe example obtains input from the user and then determines whether that input is in the correct range howeverin this casethe else clause provides an alternative output message when the user enters data outside the desired range notice that the else clause ends with colonjust as the if statement does most clauses that you use with python statements have colon associated with them so that python knows when the clause has ended if you receive coding error for your applicationmake sure that you check for the presence of the colon as needed choose runrun module you see python shell window open with prompt to type number between and type and press enter the application determines that the number is in the right range and outputs the message shown previously in figure - repeat steps and but type instead of this time the application outputs the error message shown in figure - the user now knows that the input is outside the desired range and knows to try entering it again using the if elif statement in an application you go to restaurant and look at the menu the restaurant offers eggspancakeswafflesand oatmeal for breakfast after you choose one of the itemsthe server brings it to you creating menu selection requires something like an if else statementbut with little extra oomph in this caseyou use the elif clause to create another set of conditions the elif clause is combination of the else clause and separate if statement the following steps describe how to use the if elif statement to create menu this example also appears with the downloadable source code as ifelif py