my_module.py 247 B

1234567891011121314
  1. print('Imported my_module...')
  2. test = 'Test String'
  3. def find_index(to_search, target):
  4. '''Find the index of a value in a sequence'''
  5. for i, value in enumerate(to_search):
  6. if value == target:
  7. return i
  8. return -1