+3 votes
in Class 12 by kratos

Write the code in python to read the contents of “number.csv” file consisting of data from a mysql table and print the data of the table on the screen in tabular form of the table

1 Answer

+1 vote
by kratos
 
Best answer

f = open('numbers.csv', 'r') with f:

reader = csv.reader(f)

for row in reader:

for e in row:

print(e)

...