Dev4Hub
TutorialsRoadmapReviewNotesCode Editor
Sign inSign up
  • Python
  • HTML
  • CSS
  • JavaScript
  • SQL
Your progress0 / 10
search
school

Python Basics

  • 1Python Introduction
  • 2Python Syntax
  • 3Python Variables
alt_route

Python Control Flow

  • 1Python If...Else
  • 2Python While Loops
  • 3Python For Loops
  • 4Python Functions
Tutorialschevron_rightPython Tutorialchevron_rightPython Strings

Python Strings

format_list_numberedLesson 5 of 11schedule1 min readview_agenda1 sectionauto_awesomeAI tutor ready
01

Strings

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

Example

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

Output

Hello
5
Try it Yourself »
arrow_back PreviousPython Data TypesNext arrow_forwardPython Numbers

Dev4Hub

Learn coding with hands-on tutorials, examples and quizzes — covering Python, HTML, CSS, JavaScript, SQL and more.

Tutorials

  • Python
  • HTML
  • CSS
  • JavaScript
  • SQL

Tools

  • Code Editor
  • All Tutorials
© 2026 Dev4Hub. Inspired by the W3Schools learning model.