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
Get step-by-step solutions from verified subject matter experts
