Strings, Characters, and Encodings
How text is stored as bytes and Unicode.
Text Is Made of Characters
Every piece of text you process is a string: an ordered run of characters like letters, digits, spaces, and symbols. 🔤
Strings in Python
In Python a string is wrapped in quotes. You can store a whole sentence in a single variable and work with it as one value.
text = "NLP turns text into insight"
print(type(text)) # <class 'str'>All lessons in this course
- Strings, Characters, and Encodings
- Reading Text Files Into Python
- Counting Words and Characters
- Building Your First Word Frequency Table