import numpy as np
import sys

#define a function that returns a value
def expo(x):
    return np.exp(x) #e^x

#define a subroutine that does not return a value
def show_expo(n):

    for i in range(n):  #i = [0,n-1]
        print(expo(float(i)))

#define main function
def main():
    n = 10 #provide a default value for n

    #check if there is a command line argument provided
    if(len(sys.argv)>1):
        n = int(sys.argv[1]) #change n to be the 2nd command line arg
    show_expo(n)

#run the main funciton
if __name__=="__main__":
    main()


