Page 27 - PYTHON-11
P. 27

Program 21- A list Num contains the following elements:
                                         3, 21, 5, 6, 14, 8, 14, 3
                     WAP to swap the content with next value divisible by 7 so that the resultant
                       array will look like:
                              3, 5, 21, 6, 8, 14, 3, 14

               Code:






























               ********Output of the program********
   22   23   24   25   26   27   28   29   30   31   32