diff options
Diffstat (limited to 'Tests.py')
-rw-r--r-- | Tests.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests.py b/Tests.py new file mode 100644 index 0000000..7598cae --- /dev/null +++ b/Tests.py @@ -0,0 +1,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"]]) |