Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started