title: Making a quiz to ask random questions in python from csv file
body: <p>I need help making this function be able to ask a random question from column 1 in my CSV and cross reference it with the same row but column 2 to see if it is correct. Here's what I have:</p>
  
  <pre><code>import random
  
  def playerTriviaQuestions():
      fo = open("playerstriviaquestions.csv","r")
      players = fo.readlines()
      for p in players:
          data = p.split(",")
      questions = data[0]
      answers = data[1]
      print(questions)
  
      fo.close()
  </code></pre>