Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. def najdi(kopica, igla):
  2.     index = 0
  3.     print('[', end='')
  4.     while True:
  5.         temp = kopica.find(igla, index)
  6.         if (temp == -1):
  7.             print('\b\b]')
  8.             break
  9.         index = temp + 1
  10.         print(temp, end = ', ')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement