use sys.argv python to create command line arguments code example Example: python arguments import sys print ("the script has the name %s" % (sys.argv[0])