0Pricing
Python Academy · Lesson

String Basics and Indexing

Learn string creation, indexing, and basic operations.

Introduction

A string is an ordered sequence of Unicode characters. You can access individual characters by their position (index).

String Literals

Create strings with 'single', "double", or '''triple''' quotes. Triple quotes span multiple lines.
s = 'hello'
t = "world"
print(s, t)

All lessons in this course

  1. String Basics and Indexing
  2. String Slicing and Concatenation
  3. Common String Methods
  4. String Formatting with f-strings
← Back to Python Academy