def question_with_answer(prompt):#defines question and answer variable
    print("Question:" + prompt) #shows question
    rsp=input("Answer") #viewer responds and their response it shown back
    return rsp
questions=3
correct=0 #starting score at beginning of quizprint("Hello, friend")

print("Today you will be tested on your knowledge of soccer.")
rsp=question_with_answer("Are you ready to take a test?")
if rsp== "yes":
    print("Alrighty Then!!!")
else:
    print("Let's do the quiz anyways.")

rsp = question_with_answer("Which team won the 2022 FIFA world cup?")
if rsp == "Argentina":              #if and else gives command to what to tell viewer if their answer was the correct one or the wrong one
    print (rsp + " is correct!!")
    correct += 1
else:
    print(rsp + " isn't the right answer, you are wrong!")

print("Okay, next question --->")

rsp = question_with_answer("Who is the richest soccer player as of 2023?")
if rsp == "Faiq Bolkiah":
    print("GOOOOAALL!! That is correct!!! Bolkiah plays for the Brunei National Team and has a net worth of 20 Billion dollars!")
    correct += 1
else:
    print(rsp + " is not the richest player. You are incorrect!")

print("And now, for the FINAL QUESTION...")

rsp = question_with_answer("Who is the greatest soccer player of ALL TIME?")
if rsp == "Lionel Messi":
    print("CORRECT!!! Messi is the best!")
    correct += 1
else:
    print("You are WRONG!!!")

print("WOW! You scored " +str(correct) + " out of " + str(questions))

print("Thank you for doing my quiz, see you next time!!!")
Today you will be tested on your knowledge of soccer.
Question:Are you ready to take a test?
Alrighty Then!!!
Question:Which team won the 2022 FIFA world cup?
Argentina is correct!!
Okay, next question --->
Question:Who is the richest soccer player as of 2023?
GOOOOAALL!! That is correct!!! Bolkiah plays for the Brunei National Team and has a net worth of 20 Billion dollars!
And now, for the FINAL QUESTION...
Question:Who is the greatest soccer player of ALL TIME?
CORRECT!!! Messi is the best!
WOW! You scored 3 out of 3
Thank you for doing my quiz, see you next time!!!