Editor

Hello World

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!

Example

result = greet()
print(result)  # Output: Hello, World!

Requirements

  • The function should take no arguments
  • Return exactly "Hello, World!" (with the comma and exclamation mark)
def greet():
# Your code here
pass
# Test your function
print(greet())

Ready?

Accept the challenge to start writing. A small timer counts the time this page is in view.

Output appears here.