Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. def index_of(array, ind):
  2. for i in range(0, len(array)):
  3. if array[i] == ind:
  4. return i
  5. print("This value does not exist in the list")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement