Question: 9 . 1 1 NumPy: Joining arrays Write a program that prompts a user to enter values for three lists, converts the three lists to

9.11 NumPy: Joining arrays
Write a program that prompts a user to enter values for three lists, converts the three lists to a 3-D array of type float, and then splits the array into three separate arrays. Use the instructions below to complete this program.
Write a function def fill_List() that gets the user input for a list (we will reuse this function)
you will need to create a new list inside the function,prompt the user for input, anduse a while loop to add the input to your listreturn the list
In the main function:
call the fill_List function to fill three different listscreate a 3-D array of type floatprint the arraysplit the array into three 1-D arraysprint the three arrays
A sample program run:
Enter numbers for the list (Q to quit): 123 Q Enter numbers for the list (Q to quit): 257 Q Enter numbers for the list (Q to quit): 91115 Q [[1.2.3.][3.6.9.][2.4.6.]][[1.2.3.]][[3.6.9.]][[2.4.6.]]
Comparison tests will be used to test your code.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!