daily pastebin goal


a guest Aug 12th, 2018 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/local/bin/python env Python 2.7
  2. #importing module csv
  3. import csv
  4. #creating function to get questions
  5. def get_questions():
  6.     questions = []
  7.     with open("questions.csv", mode="r", encoding="utf-8") as my_file:
  8.         reader = csv.reader(my_file)
  9.         for row in reader:
  10.             questions.append(row)
  11.     return questions
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand