Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. def match(questionType)
  2. q = '{}.txt'.format(questionType)
  3. answer = 'answer{}.txt'.format(questionType)
  4. with open({},'r') as fque:
  5. with open(answer{},'a') as fans:
  6. questions = fque.readlines()
  7. result = []
  8. count = 0
  9. countans = 0
  10.  
  11. while True:
  12. if count == len(questions):
  13. print(question[count]
  14. print(answer[count])
  15. count += 1
  16. countans +=1
  17. else:
  18. break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement