You were calling it like,
python program.py a1 b2 c3
where it outputs
The script is called: /home/sophia/program.py
Your first variable is: a1
Your second variable is: b2
Your third variable is: c3
sys.argv contains a rundown of strings, each comparing to a command line boundary. The first is consistently the filename of the content; others are the discretionary parameters, requested precisely as they were composed in a shell.
Want to learn python to get expertise in the concepts of python? Join python certification course and get certified