(continued from previous page elif % == #check this if % is not zero print("number is divisible by only"elif % == #check this if % is not zero print("number is divisible by only"elseprint("number is not divisible by and "print(" % " % print(" % " % print("thank you"listing 'andand 'orlogic #orlogic pycheck divisibility with and =int(input('enter the number:\ ') is used to calculate remainder if % == or % == #check divisibility with or if % == and % == #check if divided by both and print("number is divisible by and "elif % == #check this if % is not zero print("number is divisible by only"elif % == #check this if % is not zero print("number is divisible by only"elseprint("number is not divisible by and "print(" % " % print(" % " % print("thank you"while loop 'whileloop is used for recursive actionand the loop repeat itself until certain condition is satisfied listing uses 'whileloop to print numbers to for printing numbers upto value of initial number should be increased by at each iterationas shown in line listing while loop #whileexample pyprint numbers upto = #initial value of number print("numbers upto "while < print(nend=")#end="to stop row change after print = + print("\ncode ended at % ''outputnumbers upto code ended at '' explanation listing in the codeline ' sets the initial value of the number ' = line ' indicates that 'whileloop will be executed until 'nis less than next two lines line ' and ' 'are indented with respect to line ' hence these line will be executed if and only if the condition at line ' is satisfied since the value of 'nis one therefore while loop be executed firstnumber is printed by line ' ' control structure