Skip to content
How to randomize questions for the quiz?
Profile icon
MynameisSolomon
You are viewing a single comment. View All
Profile icon
[deleted]

What you can do is :)
import random
question = ["What is the temperature of the earth core?", "How far is the sun?", "How many bones does a human have"]
print(random.choice(question))

Profile icon
MynameisSolomon

@IEATPYTHON
thank you i will try this and see if it works

Profile icon
MynameisSolomon

@IEATPYTHON
It is working but i need to import random functions that have the questions in it and also i need it to not repeat the same questions again plz. I have attached my repl
https://repl.it/@MynameisSolomon/NeglectedWellwornAddresses