Pseudocode Compiler
Practice

Reverse a String

HARDString Processing

Read a word. Output it reversed.

Input: A single word. Output: The word reversed.

Example:

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

Sample Test Cases

Test 1
Inputs: hello
Expected: olleh
Test 2: Palindrome stays same
Inputs: racecar
Expected: racecar
Test 3
Inputs: Python
Expected: nohtyP
Press Ctrl+Enter to run your code
or Ctrl+Shift+Enter to grade