0PricingLogin
NLP Academy · Lesson

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

  1. Strings, Characters, and Encodings
  2. Reading Text Files Into Python
  3. Counting Words and Characters
  4. Building Your First Word Frequency Table
← Back to NLP Academy