def ask_questions(list_of_questions): import random order = list(range(len(questions))) random.shuffle(order) end_test = False num_questions = len(q) score = 0 while not end_test: num_skipped = []
The function ask_questions takes one argument list_of_questions and shuffles the order of the questions. It also counts the number of questions and the number of skipped questions.