Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can you guys please help me to do this problem using Python with Jupyter ? thanks Write a Python program that prompts the user to

can you guys please help me to do this problem using Python with Jupyter ? thanks
image text in transcribed
image text in transcribed
Write a Python program that prompts the user to enter the number of rows and columns of a matrix. Generate a matrix of size entered by the user. Populate the matrix with random numbers between 2 and 30 (Hint: random.randint(2,30)). Seed the random number generator with 132. Your program should modify the matrix in such a way that, first and last columns are swapped. Enter the number of rows 4 Enter the number of columns 6 Original Matrix [15.6.15.3.30.7.]] [30. 3. 11. 5. 29. 26.] [27. 28. 19. 2. 9. 16.] [10. 8. 27. 16. 7. 23.]] Modified Matrix [ [ 7. 6.15. 3. 30. 15.] [26. 3. 11. 5. 29. 30.] [16. 28. 19. 2. 9. 27.] [23,8,27,16,7,10]

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

AWS Certified Database Study Guide Specialty DBS-C01 Exam

Authors: Matheus Arrais, Rene Martinez Bravet, Leonardo Ciccone, Angie Nobre Cocharero, Erika Kurauchi, Hugo Rozestraten

1st Edition

1119778956, 978-1119778950

More Books

Students also viewed these Databases questions

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago