Guest User

Untitled

a guest
Jun 25th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. def QuestionGenerator():
  2. questionlist_file = open('StudentNames&Questions.csv')
  3. reader = csv.reader(questionlist_file)
  4. rownum=0
  5. array=[]
  6. for row in reader:
  7. array.append(row)
  8. rownum=rownum+1
  9. i = random.randint(0,3)
  10. question = array[0,1]
  11. return question
Add Comment
Please, Sign In to add comment