def my_startswith(s1, s2): if s1 == s2: return True elif s1 != s2: return False elif s2 == '': return True elif s1 == '' and s2 == '': return True
Iam having trouble with the third and fourth elif. Third elif: i need to say that if s1 is a string and s2 is an empty string -> true,
the fourth elif: i need to say that s1 and s2 are empty strings -> true. When I run it, it only reads the first if when i test for situations that belong to the third and fourth elif. Any help s appreciated, thank you.