0Pricing
Python Academy · Lesson

Common String Methods

Explore upper, lower, strip, split, replace, and find methods.

Introduction

Python strings have dozens of built-in methods for searching, transforming, and validating text.

upper() and lower()

'hello'.upper() gives 'HELLO'. 'WORLD'.lower() gives 'world'. Neither modifies the original — they return new strings.
print('hello'.upper())
print('WORLD'.lower())

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