i am in an intro to programming class and we are learning the lanuage python:
def is_prefix(s1,s2):"""s1:strs2:strreturn:bool - True if and only if s1 is a prefix of s2"""#Do this with a loop.#return s1 == s2[:len(s1)] will work, but is not allowed.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here