36 lines
614 B
Markdown
36 lines
614 B
Markdown
---
|
|
type: challenge
|
|
title: "The Greeting"
|
|
xp: 25
|
|
duration: 15
|
|
difficulty: 1
|
|
---
|
|
|
|
# The Greeting
|
|
|
|
> **[INCOMING — Mission Control, Earth]**
|
|
>
|
|
> Cadet, your first Python. Implement a function called `greet` that
|
|
> returns the exact string:
|
|
>
|
|
> ```
|
|
> Hello, Python
|
|
> ```
|
|
>
|
|
> Two pieces of syntax:
|
|
>
|
|
> - `def name():` defines a function
|
|
> - `return value` sends a value back to whoever called it
|
|
>
|
|
> [END TRANSMISSION]
|
|
|
|
## Your Task
|
|
|
|
Open `starter/starter.py`. Replace `pass` with a `return` statement
|
|
that returns `"Hello, Python"`.
|
|
|
|
## Objectives
|
|
|
|
- A function `greet` exists
|
|
- `greet()` returns `"Hello, Python"`
|