Page 36 - IPP-11
P. 36
Program 21: A list Num contains the following elements:
3, 21, 5, 6, 14, 8, 14, 3
WAP to swap the content with the next value divisible by 7 so that the resultant array will look like:
3, 5, 21, 6, 8, 14, 3, 14
Code:
Output:
Program 22: WAP to accept values from the user and create a tuple.
Code:
Output:
13