Learn what Python is, how instructions work, and how to use print().
Watch the video, then complete the challenge by writing real Python in the browser.
Python is a friendly coding language that lets us give instructions to a computer.
A function is a reusable set of instructions. In this lesson, you will build greet().
Click Run & Check to process your code and see if your answer passes the task.
Start with the video, then try the coding challenge below.
Make a function that returns a greeting.
return is different from print.Create a function called greet().
Hello World!print(greet())Example output:
Hello World!
When your code is correct, the terminal will show your output and a success message.
Move on when your code passes the challenge.