i am running this:
import csv
import sys
reader = csv.reader(open(sys.argv[0], "rb"))
for row in reader:
print row
and i get this in response:
['import csv']
['import sys']
['reader = csv.reader(open(sys.argv[0]', ' "rb"))']
['for row in reader:']
[' print row']
>>>
for the sys.argv[0]
i would like it to prompt me to enter a filename.
how do i get it to prompt me to enter a filename?