Public feed #727322

Someone

public python v1 · immutable
Raw Edit
·published 2007-10-05 22:33 UTC
rendered paste body
def whereis(s1,s2):    '''Returns the index number of the first occurence of the single letter     string s2 in the string s1. Returns False if the parameters given are not     strings'''    if (type(s1) != string ) or (type(s2) != string ):        return False    location = s1.find(s2)    return location