Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems For Advanced Applications 15th International Conference Dasfaa 2010 Tsukuba Japan April 2010 Proceedings Part 1 Lncs 5981

Authors: Hiroyuki Kitagawa ,Yoshiharu Ishikawa ,Wenjie Li ,Chiemi Watanabe

2010th Edition

3642120253, 978-3642120251

More Books

Students also viewed these Databases questions