Use len() to find how many characters a string contains: python name = "Alice" print(len(name)) # 5 empty = "" print(len(empty)) # 0 Spaces count as characters. len("a b") is (letter, space, letter).
You'll use len() constantly: checking if a string is empty, validating input length, looping through characters. It works on more than strings too. Lists, tuples, and dictionaries all have lengths.