Files
curriculum/1.solar-system/2.first-light/02.the-greeting/index.md

614 B

type, title, xp, duration, difficulty
type title xp duration difficulty
challenge The Greeting 25 15 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"