[Solved] i cant seem to get it to print the Score out when i run quiz() it should show score out of 10 but it dose not

[ad_1]

You are not printing the result instead you are returning it. So you could either print the function print(quiz()) or change the return for a print inside the quiz function.

def quiz():
    print('Welcome. This is a 10 question math quiz\n')
    score = 0
    for i in range(10):
        correct = askQuestion()
        if correct:
            score += 1
            print('Correct!\n')
        else:
            print('Incorrect!\n')
    print('Your score was {}/10'.format(score))

0

[ad_2]

solved i cant seem to get it to print the Score out when i run quiz() it should show score out of 10 but it dose not