Page 1 :
Chapter, , CONDITIONAL STATEMENTS, AND LOOPS IN PYTHON, , EXERCISE, , OPO yA, , re, , SaAaRYn> yp, , rPNPrO, , Fill in the blanks., , For controlling the sequence of program control statements are used., Control statements are conditional and loop statements., , Elif is the shortened way of saying else if., , The while loop is used to iterate a block of code as long as the condition is true., Python assumes any non-zero and non-null values as True., , The repetition of a set of statements is known as looping or iteration., , Write True (T) or False (F)., Ctrl + F is used to exit a loop., , If the condition of while loop is always true, you get an infinite loop., Elseif statement is optional statement., , , , If expression: loop(s) is the correct syntax for If statement., While loop is used when the number of times of iteration is not known., , , , Short answer type questions., , Mention two control statements., , Control statements are of two types: loops and conditional statements., What condition will lead to an infinite loop?, , If the condition of while loop is always True, it leads to an infinite loop. Press Ctrl + C to, exit from the loop., , , , Write syntax for While loop., , The While loop in Python is used to iterate a block of code as long as the condition is, true. The loop is used when you do not know the number of times to iterate., , Syntax : while expression:, , statement(s), , Long answer type questions., , Explain the difference between If and If...Else statement., , The IF statement contains a logical expression using which data is compared and a, decision is made based on the result of the comparison.