Skip to main content
← CoursesPython FoundationsModule 1 · Fundamentals of syntaxUser inputwrite6 / 170
💬 Discuss🧪 Playground+75 XP
Task
📝 **Task:** Greet the user. In a real program we'd use `input()` to ask for a name. In the browser `input()` doesn't work — so the name is already set in a variable. 📋 **Steps:** 1. The variable `name` already holds "Maria" — don't change it 2. Print the greeting `"Hi, Maria!"` 3. Use an f-string to inject the name from the variable 💡 **Example (different name):** ```python user = "Ivan" print(f"Hello, {user}!") # Prints: Hello, Ivan! ``` ⚠️ The task expects exactly `"Hi, Maria!"` — words, case, comma, exclamation mark all matter. 🎯 **Expected output:** `Hi, Maria!`

Keep going

✏️ Write your code here
🐍
Loading Python...
First visit only — ~5-10s. Stays cached afterward.
📊 Result
Press Run to see result...
📣 Help someone learn PythonShare this lesson with a friend — the first 15 are free, no signup.Tweet

💬 Discussion

Be the first to ask a question or share a tip.
Sign in to join the discussion. Reading is free.
Loading discussion…