Skip to lesson content
Dev4Hub

Lesson 5 of 11

Python Strings

1 min read1 sectionAI tutor ready

Strings

Strings in Python are surrounded by either single quotation marks, or double quotation marks.

String Basics

Python
a = "Hello"
print(a)
print(len(a))

Output

Hello
5

You've reached the end of this lesson.

Mark it complete to keep your place in the course — it counts toward your progress and your streak.