Pseudocode Compiler
Practice

Capitalise First Letter

MEDIUMString Processing

Read a word. Output it with the first letter in uppercase and all remaining letters in lowercase.

Input: A single word. Output: The word with first letter capitalised.

Example:

Input:  hello
Output: Hello
Premium is coming soon. All grading features are currently unlocked.

Sample Test Cases

Test 1: Lowercase input
Inputs: hello
Expected: Hello
Test 2: Uppercase input
Inputs: WORLD
Expected: World
Test 3: Mixed case
Inputs: pYTHON
Expected: Python
Press Ctrl+Enter to run your code
or Ctrl+Shift+Enter to grade