Code 57: Check if a string contains a specific substring.

Опубликовано: 20 Январь 2025
на канале: Code House
56
0

Python program to check if a string contains a specific substring.
We can use 'in' keyword.
org_string = "This is Code House"
print("our" in org_string) # False Checking if 'our' exist in the org_string or not.
print("House" in org_string) # True