Question: The program takes four integer arguments. Those arguments should be put into an Numpy array. The second will print the multiplication of the four
The program takes four integer arguments. Those arguments should be put into an Numpy array. The second will print the multiplication of the four items in my 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
Answer import sys import numpy as np a intsysargv1 b intsysargv2 c intsysargv3 d intsys... View full answer
Get step-by-step solutions from verified subject matter experts
