Question: Write down a Python program to do the following A) To fll a nested (two dimensional) list which has 6 rows and 12 columns with
Write down a Python program to do the following A) To fll a nested (two dimensional) list which has 6 rows and 12 columns with the following (You MUST use for loop) - The first row will contain even numbers from 20 to 42 (inclusive), - The second row will contain odd numbers from 1 to 23 (inclusive). - The third row will have numbers from - 5 to 6 (inclusive). - The fourth row will contain the first 12 multiples of number 3 . - The fifth row will contain the first 12 multiples of number 5 . - The last row will have numbers from 135 to 124 (inclusive). B) Item replacement (You MUST use for loop) - Replace all the elements that sum of their indexes is an even number and less than 7 with letter ' A : - Replace all the elements that sum of their indexes is an odd number and greater than 9 with letter ' N '. C) Computation (You MUST use for loop) - Find the sum of the first 4 columns separately and show each sum on a separate line. - Find the average of the elements of the second 4 columns separately and show it on a separate line. - Find the multiplication of the element of the last 4 columns separately and show each multiplication on a separate line
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
