Page 85 - Code Craft Computer-8
P. 85

4.  i=10
                          while i<20:
                          print (i*j)
                          i+=1




              Competency Based Questions                                                            #Critical Thinking

              1.  Sarthak wants to repeat a block of statements for a given number of times, until the control
                   condition is false. Which type of construct can she use for this? Write its syntax.
              2.   Samartha  wants  to  write  a  statement  which  will  cause  the  program  to  skip  the  rest  of  the
                   statement of the current block and to move to the next iteration of the loop. But he is unable to
                   do it. Suggest the statement he should use for this.



                   Stretch Your Mind                                                                 #Problem Solving

                  Can we use ‘for’ loop in place of the ‘while’ loop? Justify your answer.





                   Join the Discussion                                                                #Communication


                  Discuss the different types of loops in class in detail.




                   Mental Processing                                                            #Life Skills and Values


                  A few of your friends have been editing and sharing codes of other classmates without their
                  knowledge. What should you do in this situation?



                   Teacher’s Corner
                     Discuss about all the iterative statements of Python with the students.


























                                                                 85
   80   81   82   83   84   85   86   87   88   89   90