Question: Write a Python program that asks the user for a number between 1and 480, opens the file containing the first 500 Fibonacci numbers and constructs
Write a Python program that asks the user for a number between 1and 480, opens the file containing the first 500 Fibonacci numbers and constructs two 3x3 matrices using these numbers starting from the user-given number. E.g. if the user enters 34, select the 34th Fibonacci number and 18 numbers right after that to fill those two matrices. You can fill the matrices in any order, filling up the entire row before moving on to the next or doing the same with columns.Make sure that you include some error management so that numbers outside the range are not selected.
After constructing the matrices, print each matrix, their simple product (multiplying the elements) and their matrix product.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
