how to use a ' in a string python code example
Example 1: python string in string
>>> str = "Messi is the best soccer player"
>>> "soccer" in str
True
>>> "football" in str
False
Example 2: string in python
# ways to dfefine string in python
string = "String"
string = str(string)
# Can Add strings
s1 = "Str"
s2 = "ing"
s = s1 + s2 # "String"