Choose a substring

Report a typo

What value of the variable pattern will result in a True value of this membership test?

pattern = input()
test_sentence = 'I scream, you scream, we all scream for ice cream'
print(pattern not in test_sentence)

Remember that an empty string is part of every string.

Select one option from the list
___

Create a free account to access the full topic