751 B
751 B
type, title, xp, duration, difficulty
| type | title | xp | duration | difficulty |
|---|---|---|---|---|
| challenge | The Prompt | 50 | 25 | 2 |
The Prompt
[INCOMING — Mission Control, Earth]
Cadet, every program takes input. In this stage, your functions receive input as parameters — values passed in by whoever called you.
f-strings (formatted strings) embed values directly into text:
name = "Vega" f"Hello, {name}!" # → "Hello, Vega!"Implement
welcome(name, planet)that returns:Welcome, <name> from <planet>.[END TRANSMISSION]
Your Task
Open starter/starter.py. Use an f-string to return the welcome
message.
Objectives
welcome("Vega", "Mars")→"Welcome, Vega from Mars."- Works for any name and planet