Aug-31-2022, 03:29 PM
You can change both the answer and the reply to anything as long as it is the same. I was thinking that title() would work well. If the quiz answers are in title case (Paris, Berlin) they look nice when you do this:
print(f"Incorrect :(\nThe correct answer is: {a}")You could also do this:
if input("Answer? ").upper() == a.upper():then the quiz answers can use any capitalization you want.
quiz = ( ("What is the capital of France?", "Paris"), ("What is the point where two lines meet?", "vertex") )