Below is the sample Python script, which reads the command line arguments and print details. Create a sample script like script.py and copy the below content.

Then execute the above script with command line parameters. You will see the results below. The first argument is always the script itself.