Advertisement
Guest User

Untitled

a guest
Aug 12th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement