Anonymous
public text v1 · immutabledef find(str, ch):
index = 0
while index < len(str):
if str[index] == ch:
return index
index = index + 1
return -1 def find(str, ch):
index = 0
while index < len(str):
if str[index] == ch:
return index
index = index + 1
return -1