How do I make the computer compute out a different choice every time:
def quiz():
score = 0
qdict2 = qdict1.copy()
for i in range(0,len(qdict2.keys())):
rKey= random.choice(list(qdict2.keys()))
rValue=qdict2.get(rKey)
rKey2 = random.choice(list(qdict2.keys()))
rValue2 = qdict2.get(rKey2)
rKey3 = random.choice(list(qdict2.keys()))
rValue3 = qdict2.get(rKey3)
num = random.randint(1,3)
Thanks for any help.
Aucun commentaire:
Enregistrer un commentaire