how to assign variables to a list from command shell python 3 code example Example: python arguments import sys print ("the script has the name %s" % (sys.argv[0])