Loading Python...

Lesson 1
Introduction to Python

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 Basics

Python is a friendly coding language that lets us give instructions to a computer.

🧠

Functions

A function is a reusable set of instructions. In this lesson, you will build greet().

Run & Check

Click Run & Check to process your code and see if your answer passes the task.

Watch First

Start with the video, then try the coding challenge below.

Python Challenge

Make a function that returns a greeting.

Exercise: Make a function that returns a greeting
Tip: return is different from print.
Loading Python…

🐣 Task

Create a function called greet().

  • It must return exactly: Hello World!
  • Then the program should print it using print(greet())

Example output:

Hello World!

When your code is correct, the terminal will show your output and a success message.

Python Editor Press Ctrl + Enter to run
Terminal Output Program output and test results
Output will appear here…
🏆 Beginner Badge Achieved! Your progress has been saved.
The terminal shows your print() output and whether your code passed the task.

Keep Learning

Move on when your code passes the challenge.

📚
0
Next Lesson

Try Python lists and learn how to store multiple items.


Lists Lesson →
🏠
0
Course Page

Go back to the courses page to choose another challenge.


Courses →