Hi there. Im wondering how exactly the solution to my current exercise works.
def contains(big_string, little_string): return little_string in big_string
The function works perfectly, and correctly tells me True of False depending on if little_string is within big_string, but I have no idea how. There are no if or for commands. Im used to using the ‘in’ command when im putting it in a ‘for’ loop. but I have never been shown how this works.
Cheers for any help