mercredi 25 décembre 2019

why is this code not putting out the questions?

import random

def get_questions():
    questionBank = []
    questionBank.append(["how many steps are in the eiffel tower?", "1770", "10838"])
    questionBank.append(["how many different flavours of gummy bears are there?", "4", "5"])
    questionBank.append(["how many pizzas are eaten in the US per year?", "3 billion", "1,5 million"])

    return questionBank


def play_quiz():
    questions = get_questions()

    random.shuffle(questions)

    s: List[str]
    for s in questions:
        print(s[0] + "is it" + s[1] + "or" + s[2])

When I run this it simply does not print anything. Can someone help me understand why




Aucun commentaire:

Enregistrer un commentaire