Skip to main content
Back to problems
Leetcode
Easy
Functions
Create Hello World Function

Write a function that returns the classic string "Hello World".

Acceptance 0%
Problem Statement

Task

Implement a function that returns the string "Hello World" exactly.

The problem is a basic warm-up that checks whether you can define a function and return a fixed value in the required format.

Notes

  • Return the string exactly as shown.
  • No input processing is needed.
  • The function should not print anything unless the platform explicitly requires it.

Input Format

No input is required.

Output Format

Return the string "Hello World" exactly.

Constraints

  • No parameters are needed.
  • The returned value must match the expected string exactly, including capitalization and spacing.
Examples
Sample cases returned by the problem API.

Example 1

Input

Output

Hello World

Explanation

The function simply returns the exact string required by the problem.

Premium problem context

Unlock deeper context for this problem

Premium adds guided hints, editorial links, similar variants, discussion resources, and concept maps so you can understand why a problem matters, not just solve it once.

Guided hints
Editorial and discussion links
Concept map and variants
Sign in to unlock
Track your progress
Sign in to bookmark this problem, save notes, and manage its revision plan.