In my password lookup pgm sys.argv only returns the pgms file location. How do I get the selected input?
1 2 3 4 5 6 7 8 9 10 11 |
#! python 3 # pw.py - password lookup pgm PASSWORDS = { 'hotmail' : 'ECDaug#2019' , 'isimail' : 'ECDaug#2019' , 'tdadmin' : 'ecdisi04' } import sys, pyperclip print (sys.argv) print ( 'This is the name of the script: ' ), sys.argv[ 0 ] print ( 'Number of arguments: ' ), len (sys.argv) print ( 'The arguments are: ' ) , str (sys.argv) |