Page 35 - IPP-11
P. 35
Program 19: WAP in Python to find and display the sum of all the values which are ending with 3 from a list.
Code:
Output:
Program 20: WAP to shift the positive numbers to the left and the negative numbers to the right so that
the resultant list will look like—
Original list: [-12, 11, -13, -5, 6, -7, 5, -3, -6]
Output should be: [11, 6, 5, -6, -3, -7, -5, -13, -12]
Code:
Output:
12