3.01
Completed
Python String Fundamentals Python String Fundamentals

Learn the basics of Python strings: text values, quotes, variables, empty strings, and why "25" is not the same as 25.

Python String Fundamentals

Sounds useful?

Jump into the interactive version.

No setup. No account. Just Python.

Interactive Python lesson

String Fundamentals in Python

Text is everywhere in code: names, messages, labels, usernames, tiny notes to future-you, and many other things that are definitely not numbers. This Block introduces strings, Python's basic way to represent text. You will learn how quotes work, how to store text in variables, how to print strings, and why a value like "25" is text while 25 is a number.

What you will learn:

  • Create string values with quotes
  • Store strings in variables and print them
  • Understand the difference between print(name) and print("name")
  • Use an empty string with ""
  • Tell the difference between text values and number values
  • Avoid common beginner traps with missing quotes and quoted variable names

Plain examples first, light theory second. By the end, you will understand the tiny quote marks that make Python treat something as text. Small marks, big responsibility.

> Start now 99 cards · about 8 min

Ready to practice this in the browser?

> Play now