Skip to main content
LeetCode 709, Easy. Topics: String. View on LeetCode. Generate this problem as a practice environment: tested reference solution, 16 parametrized pytest cases, and a playground notebook:

Problem

Given a string s, return the string after replacing every uppercase letter with the same lowercase letter.

Examples

Constraints

  • 1 <= s.length <= 100
  • s consists of printable ASCII characters.

Solution

Reference implementation from solution.py on GitHub, full suite in test_solution.py:

Complexity

Tags

Last modified on September 7, 2026