You are on page 1of 2

ASSIGNMENT-1

COMMAND LINE ARGUMENTS

AIM:

To construct the python program that takes in command line arguments as input and print
the number of arguments.

ALGORITHM:

STEP 1: Start the program.

STEP 2: Get the input for A.

STEP 3: Use the len() function to get the length of the input.

STEP 4: Use print() function to print the total arguments passed and the arguments in the list.

STEP 5: Run the program.

STEP 6: Stop the process.

CODING:

a=1,2,3,4,5,6,7,8,

print ('Number of arguments:', len(a), 'arguments.')

print ('Argument List:',(a))


OUT PUT:

RESULT:

The above mentioned aim of the program has been achieved successfully.

You might also like