Strings
Creating Strings
single = 'Hello'
double = "Hello"
multi = """Hello,
world"""Indexing and Slicing
text = "Python"
print(text[0]) # P
print(text[-1]) # n
print(text[1:4]) # ythImmutability
text = "Hello"
# text[0] = "J" # TypeErrorCommon Operations
Membership and Iteration
Formatting
Useful Methods
Last updated