Strings are text — enclosed in " " or ' '
Basic operations:
name = "Alex"
greeting = "Hello, " + name # concatenation
repeat = "Hi" * 3 # HiHiHi
Access characters: name[0] = 'A', name[-1] = 'x'
.upper() / .lower().strip() — remove whitespace.replace("old", "new").split() — break into list.join(list) — combine with separator.find("text") — position or -1Example:
text = " hello world "
clean = text.strip().upper() # "HELLO WORLD"