Question: The program takes four integer arguments. Those arguments should be put into an Numpy array. The first will print the type of the array you

The program takes four integer arguments. Those arguments should be put into an Numpy array.

The first will print the type of the array you create (which should be ).

The second will print the multiplication of the four items in the array.

 import sys import numpy as np a = int(sys.argv[1]) b = int(sys.argv[2]) c = int(sys.argv[3]) d = int(sys.argv[4]) def Numberarray(a, b, c, d): args = np.array([a, b, c, d]) print(type(args)) print(str(a * b * c * d)) Numberarray(a, b, c, d) 

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 Databases Questions!