Python Basics · Beginner · 25 XP · about 2 min
Write a function called greet() that returns the string "Hello, World!".
This is the classic first program - let's start your Python journey!
result = greet() print(result) # Output: Hello, World!
"Hello, World!" (with the comma and exclamation mark)Ready?
Accept the challenge to start writing. A small timer counts the time this page is in view.
Output appears here.