Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Tests.py
blob: 7598cae1110f0ff206546d31647aeec726c46dfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from Globals import *
P = PREGUNTAS
import random

Pregunta = random.choice(P)
print "Elemento: " + str(Pregunta["elemento"])
print ""
print "Pregunta: " + str(Pregunta["pregunta"])
print ""
print "Respuestas: "
actual = 0
for x in Pregunta["opciones"]:
	print str(actual) + ") " + x
	print ""
	actual += 1
print "Respuesta original: " +  str(Pregunta["respuesta"]) + ") " + str(Pregunta["opciones"][Pregunta["respuesta"]])