# Source code for quiz.newQuiz

    import csv
    from prettytable import PrettyTable
    def readCSV(file):
        """Reads out the csv file uploaded by professor"""
        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

    def printTable(rows):
        """prints  out the csv file uploaded by professor for debugging purposes"""
        x = PrettyTable()
        for row in rows:
            x.add_row(row)
        print(x)
    #f =open("file.csv",'r')

    #rows=readCSV(f)
    #printTable(rows)