I don’t know what your level of programming experience is, but command line arguments are a pretty common thing. In the olden days, every program you created was done in a text editor, and then run on a command line.
The command line is, in simple terms, a program built into the operating system which allows you to run programs by calling them by name. In Windows, this command line is called the Command Prompt. On other operating systems, it is usually called Terminal.
Though you may be familiar with running programs through an IDE, you can also run them from the command line. To run a python program, you could type:
python the_program.py
to run a program, assuming you have python installed and your terminal knows where it is. So command line arguments are a sort of variable/argument you send to a program that is run this way. If you say:
python the_program.py 100 hello 3.35
You can access these values from within your program, by adding
import sys
to the top, and in the body of your code by accessing the array of arguments, named
sys.argv
2
solved What are command line arguments in Python? [duplicate]