Assuming you wanted your question_prompts
to be a list with 5 elements, then you need commas at the end of each line, like so:
question_prompts = [
"How many time does Sebastian Vettel win a World Driver Championship on F1?
(a). never
(b). 2x
(c). 5x
(d). 4x",
"When was the last time Michael Schumacher won f1 WDC?
(a). year 2004
(b). year 2011
(c). year 2006
(d). year 2005",
"Track that held an F1 Grand Prix more than any circuits
(a). Monza
(b). Silverstone
(c). Monaco
(d). Spa",
"What was the opening Grand Prix of the season before Australia become the season opener?
(a.)Bahrain
(b). China
(c). Abu Dhabi
(d). Spain",
"Who is the only driver that had 5 WDC until now?
(a). Lewis Hamilton
(b). Alain Prost
(c). Juan Manuel Fangio
(d). Aryton Senna",
]
Python has implicit concatenation of string literals, so: "a""b" == "ab"
.
Because of this implicit concatenation, what you have currently is a list with a single element, like this:
question_prompts = [
"How many time does Sebastian Vettel win a World Driver Championship on F1?
(a). never
(b). 2x
(c). 5x
(d). 4xWhen was the last time Michael Schumacher won f1 WDC?
(a). year 2004
(b). year 2011
(c). year 2006
(d). year 2005Track that held an F1 Grand Prix more than any circuits
(a). Monza
(b). Silverstone
(c). Monaco
(d). SpaWhat was the opening Grand Prix of the season before Australia become the season opener?
(a.)Bahrain
(b). China
(c). Abu Dhabi
(d). SpainWho is the only driver that had 5 WDC until now?
(a). Lewis Hamilton
(b). Alain Prost
(c). Juan Manuel Fangio
(d). Aryton Senna"
]
Obviously not your intention :)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…