PYTHON 11
Finding index in text Guest on 26th April 2021 05:36:39 AM
  1. for i, word in enumerate(dictFile.read().split()):
  2.     ...
  3.     ...
  4.         print('Index located at position: %d' % i)
  5.         #print('Index located at position: {}'.format(i))
  6.         #print(f'Index located at position: {i}')

Paste-bin is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.