Jump to content

I need to check for a string inside of a larger string, however the string is two words. For example:

if "red blue" in "it looks like red blue to me":
    print('did it')

I need this to return true. Or something like it that can do what it's trying to do. But it seems like python can only check for one word, not two. Am I wrong?

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×