All pastes #164335 Raw Edit

Unnamed

public python v1 · immutable
·published 2006-09-08 15:02 UTC
rendered paste body
def find(str, ch):  index = 0  while index < len(str):    if str[index] == ch:      return index    index = index + 1  return -1find("bada", "a")