title: Creating a multiple choice quiz python
body: <p>I'm trying to write a program to create a file that will contain a multiple choice quiz for people to print or do whatever they want with it. I know how to do the file writing, but am stuck on how to make the choices for the question. The question would ask for the capital of the state, and the choices would give 4 possibilities, with only one being correct. Here is the code:</p>
  
  <pre><code>import random
  
  state_capitals = A DICTIONARY of the states and their capitals which I spared you because it was really big :D
  
  
  file = open(r'''C:\Users\Leo\Desktop\Quiz1CSL.txt''',"w")
  #The range(1) is just there as a place holder for later
  for x in range(1):
  
      file.write("Austin's Computer Science State Capitals Quiz\n")
  
      for x in range(10):
          random_state = random.choice(list(state_capitals.keys()))
          main_typed = "What is the capital of"
          question_mark = "?"
          file.write("\n")
          file.write('{0} {1}{2}\n'.format(main_typed, random_state,question_mark))
  
  file.close()
  </code></pre>