Jul-15-2020, 04:51 AM
(Jul-13-2020, 08:08 PM)jefsummers Wrote: Also you have a scope of variable problem.
def get_csv_as_table(filename, delimiter): csvFile=open(filename) for row in csvFile: #row=row.strip() row=row.split(delimiter) userArray.append(row) csvFile.close() return userArray get_csv_as_table(userFileName, userDelimiter)
Output:Input the file name :- top_100.csv
input the delimiter :- ,
>>>
i still get this output now the array wont even print:(