6.7: The in operator Last updated Save as PDF Page ID8597 Contributed by Chuck SeveranceClinical Associate Professor (School of Information) at University of Michigan The word in is a boolean operator that takes two strings and returns True if the first appears as a substring in the second: >>> 'a' in 'banana' True >>> 'seed' in 'banana' False