Source Code:
(back to article)
string = "Hello, World!" word = "World" if word in string: print(f"'{word}' is in the string '{string}'") else: print(f"'{word}' is not in the string '{string}'")
Result:
Report an issue