continuous questions
<pre><code>import json
import random

questions = json.load(open("questions.json"))

question = random.choice(questions.keys())

answers = questions[question]['answers']
correct_answer = questions[question]['correct_answer']

print question
for n, answer in enumerate(answers):
    print "%d) %s" % (n + 1, answer)

resp = raw_input('answer: ')
if resp == str(correct_answer):
    print "correct!"
else:   
    print "sorry, the correct answer was %s" % correct_answer
</code></pre>
