Page 67 - Touchcode_C8_Flipbook
P. 67

Well done, you have learnt to reverse the integer number!




                  You can view the code of the above program in ‘Python’ by selecting ‘Python’ as an Editor.

































                       Higher Order Thinking Skills                                                          (HOTS)


                     Make an array of animals (5 animals in the array) and use for loop which runs as many times as
                     the length of the array to drop horses from the sky.


                      Teacher’s Corner

                 1.  Discuss the concept of arrays with students. Ask the students to come up with real-world examples of
                     arrays to encourage critical thinking.
                 2.  Discuss the concept of bubble sort with the students.



















                                                                                     Programming with Arrays     65
   62   63   64   65   66   67   68   69   70   71   72