Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i in range(len(q_indexes)):
- #go through each index of the index_questions list [0,1,2,3...] which refer to questions indexes of the main file [1,7,23 etc]
- current_index = q_indexes[i]
- try:
- next_index = q_indexes[(i+1)]
- answ_string = ''.join(text_list[current_index:next_index])
- answ_list.append(answ_string)
- except:
- continue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement