(continued from previous page output enter the number number is divisible by and thank you output enter the number number is divisible by only % thank you output enter the number number is not divisible by and % % thank you output enter the number number is divisible by only thank you ''explanation listing let' discuss the indentation first first look at the indentation at lines ' and ' since line ' is shifted by one indentation after line ' 'therefore it belongs to line ' 'which represents that pythoninterpreter will go to line ' only if line ' is true similarlyprint statements at line ' and ' are indented with respect to line ' 'therefore both the print statement will be executed when pythoninterpreter reaches to 'elsecondition now we will see the output for ' = for ' = ''ifstatement is satisfied at line ' 'therefore python-interpreter will go to line ' 'where the divisibility of the number is checked with number ' the number is divisible by ' alsohence corresponding print statement is executed as shown in line ' after thispython-interpreter will exit from the 'if-elsestatements and reached to line ' and output at line ' will be printed lets consider the input ' = in this case number is not divisible by ' and ' therefore pythoninterpreter will reached to line ' since lines ' '' and ' are indented with respect to line ' 'hence all the three line will be printed as shown in line ' - finallypython-interpreter will reach to line ' and print this line also lastlyuse as the input number since it is not divided by it will go to elif statement and corresponding print statement will be executed since there are three conditions in this example therefore 'elifstatement is used remember that 'if-elsecan contain only one 'ifand one 'elsestatement but there is no such restriction of 'elifstatement henceif there higher number of conditionsthen we can increase the number of 'elifstatement listing can be written as listing and listing as well here 'orand 'andkeywords are used to verify the conditions the 'andkeyword considers the statement as trueif and only ifall the conditions are true in the statementwhereas 'orkeyword considers the statement as trueif any of the conditions are true in the statement listing 'andlogic #andlogic pycheck divisibility with and =int(input('enter the number:\ ') if % == and % == #check divisibility with both and print("number is divisible by and "(continues on next page control structure