Kevin Tiller

Generation

code to explanationThu, 20 Apr 2023

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 code above is a function called ask_questions which takes one argument called list_of_questions. The function will ask the questions in a random order and ask the user if they want to skip a question. The user will be given a score out of the total number of questions

Want to kickstart your project?Use the new AI Studio to create your code