Advertisement
Guest User

Untitled

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