Page 96 - Computer - 8
P. 96

2. Press the F5 key to execute the code. Sample output of the program is given below.


















            Lab Activity 4                                                                         Experiential Learning
           To display the use of Range( ) function with both initial and final values in For loop.
           1. Type the code as shown in the image in the Python Editor.











           2. Press the F5 key to execute the code. Sample output of the program is given below.

















            Lab Activity 5                                                                         Experiential Learning
           To display all even numbers between 1 and 25.
           1. Type the code as shown in the image in the Python Editor.




















           2. Press the F5 key to execute the code. Sample output of the program is given.


               94
   91   92   93   94   95   96   97   98   99   100   101