Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. for i in range(len(q_indexes)):
  2.     #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]
  3.     current_index = q_indexes[i]
  4.     try:
  5.         next_index = q_indexes[(i+1)]
  6.         answ_string = ''.join(text_list[current_index:next_index])
  7.         answ_list.append(answ_string)    
  8.  
  9.     except:
  10.         continue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement