a in string python code example
Example 1: print string python
str1 = "Hello World"
print(str1)
Example 2: python string in string
>>> str = "Messi is the best soccer player"
>>> "soccer" in str
True
>>> "football" in str
False
str1 = "Hello World"
print(str1)
>>> str = "Messi is the best soccer player"
>>> "soccer" in str
True
>>> "football" in str
False