Strings are similar to arrays ⇒ we can also slice it

s = "abc"
 
print(s[0:2]) # ab

Strings are immutable

s[0] = "A" # DOES NOT WORK

However, we add append to the end of a string. However, it will be an O(n) operation, since it is creating a new string.

s += "def" # O(n) time operation

Integer and Strings

Numeric strings can be converted, and numbers can be converted to strings

int('123') + int('123') # 246
 
str(123) + str(123) # 123123

ASCII value of a character

ord("a") # 97

Join strings together

Using a delimiter

strings = ["ab", "cd", "ef"]
 
print("".join(strings)) #abcdef