1. To write a python program that takes in command line arguments as input and print the number of arguments.
import sys
# The first argument is always the name of the script, so we subtract 1 from the length of sys.argv
num_args = len(sys.argv) - 1
print("Number of arguments:", num_args)