Source code for quiz.newQuiz
import csv
from prettytable import PrettyTable
[docs]def readCSV(file):
rows=list()
reader=csv.reader(file)
for row in reader:
#insert the questions into sql database
rows.append(tuple(i for i in row))
return rows
#f =open("file.csv",'r')
#rows=readCSV(f)
#printTable(rows)