CodeTestValidate

No installations needed! Write Python directly in your browser and get instant feedback with our smart validation system.

Challenge # 10

Reverse a String Without Built-in Functions

Objective

Manually reverse a string by iterating through it.

Instructions

  • You are given a string variable named text.

  • Your task is to reverse the string manually — without using built-in functions like reversed() or slicing ([::-1]).

  • Print the reversed string.

Constraints:
Do not use input(). • Do not use `reversed()`, `.reverse()`, or slicing like `[::-1]`.
Exemple IO

Input: text = "hello"

Output: olleh

Input: text = "Python"

Output: nohtyP

Input: text = "racecar"

Output: racecar

Try It Online!

Output:

Validate Your Results

Get your code reviewed and validated to understand what you did right and where you can improve.

Previous challengeCelsius to Fahrenheit ConverterNext challengePrime Number Checker
Loading...