Ctrl K

All Small Letters

Easy
You are given a string text made of printable ASCII characters. Replace every uppercase English letter in it with the matching lowercase letter, leaving all other characters untouched. Return the resulting string.
Example 1
text='Meet At 9PM!' → 'meet at 9pm!'

The capitals M, A, P and M become lowercase; the digit, spaces and "!" stay as they are.

Example 2
text='already quiet' → 'already quiet'

There are no capital letters, so the string comes back unchanged.

Constraints
  • 1 ≤ text.length ≤ 100
  • text consists of printable ASCII characters (codes 32 to 126)
Have you seen this problem in a real interview?
Solved by0
Tried by0
Submissions0
Acceptance—
Topics
Similar problemsValue of a Roman Numeral EasyShared Start of Words EasyBracket Balance EasyWhere the Fragment Starts EasyLength of the Final Word Easy
loading Python…
Input
text='Meet At 9PM!'
Expected
'meet at 9pm!'

Run checks the first 3 tests in your browser. Submit checks all 5 tests on the server, hidden ones included.