The Data Foundry

Built by Data with Pranjal

← Back to labs

Python Lab

Browser-based data engineering practice.

Run code directly in your browser. No backend judge, no hidden server state: inspect the data, write the fix, run checks, then explain the production lesson.

Labs

50

Free

12

Runtime

Pyodide

beginnerPython

Python 1: Reverse a string

You are writing a small data engineering utility where correctness and edge cases matter more than clever tricks.

Data engineer task

Define a function named reverse_a_string. The browser will run sample tests using Pyodide.

Sample input and output

Return the value from your function. Do not print it.

basic

Input

reverse_a_string("pipeline")

Expected output

"enilepip"

The browser tests may also include similar edge cases, so keep your solution general.

Fix workspace

Define the function reverse_a_string and pass the browser tests.

Saved locally