Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def match(questionType)
- finalAnswer = 'finalAnswer.txt'
- q = '{}.txt'.format(questionType)
- answer = 'answer{}.txt'.format(questionType)
- with open(final,'f') as fin:
- with open({},'r') as fque:
- with open(answer{},'a') as fans:
- questions = fque.readlines()
- result = []
- count = 0
- countans = 0
- while True:
- if count == len(questions):
- count += 1
- countans +=1
- finalAnswer.write(question[count])
- finalAnswer.write(answer[count])
- else:
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement