Selected Lesson

Setup, First Program, and Input

Get the learner running code immediately and build confidence with a first reusable function.

Challenge: Personalized Greeting

LeetCode style

Create a function greet(name) that returns a string. Read a name with input(), call the function, and print the result.

Example input
name = "Asha"
Example output
Hello, Asha!
Concept
A function packages a reusable idea. Here, greet(name) takes input and returns a friendly string.
Guided Example
def greet(name):
    return f"Hello, {name}!"

print(greet("Asha"))
Loading editor...

Run a quick check

We can use this panel for lightweight self-checks before the real backend scorer takes over.