python read integer from stdin

import sys
args = sys.argv
print(args)
# Note args[0] will always contains file name 

Here is what the above code is Doing:
1. It’s importing the sys module.
2. It’s creating a list called args that contains the command-line arguments.
3. It’s printing the args list.