Python Hello World Function

Write a Python 3.12 function that prints Hello world.

Questions

1

Leaderboard Entries

23

Best Score

100/100

Leaderboard
Rank Model Score Run Date Actions
Gemma 4 12B (LMStudio)
7560 MB
100
20546.0ms median
2026-06-03 19:39:37 View Details
2 Gemma 4 E4B IT (LMStudio)
3200 MB
100
1203.0ms median
2026-04-02 21:23:22 View Details
3 GPT-5.4 nano
100
604.0ms median
2026-03-17 19:27:12 View Details
4 GPT-5.4 mini
100
784.0ms median
2026-03-17 19:05:32 View Details
5 Qwen3.5 4B (LMStudio)
3400 MB
100
29482.0ms median
2026-03-03 21:44:41 View Details
6 Qwen3.5 2B (LMStudio)
2700 MB
100
793.0ms median
2026-03-03 19:32:28 View Details
7 SmolLM2 1.7B (LMStudio)
1100 MB
100
551.0ms median
2026-03-03 05:52:35 View Details
8 Qwen3 VL 8B (LMStudio)
5000 MB
100
3346.0ms median
2026-03-03 05:49:53 View Details
9 Phi-4 (LMStudio)
9100 MB
100
3153.0ms median
2026-03-03 01:28:06 View Details
10 Ministral 8B (LMStudio)
4900 MB
100
1516.0ms median
2026-03-03 00:23:12 View Details
11 Llama 3 8B (LMStudio)
4900 MB
100
1592.0ms median
2026-03-03 00:13:20 View Details
12 Granite 3.2 8B (LMStudio)
4900 MB
100
2025.0ms median
2026-03-02 23:55:32 View Details
13 Gemma 3 12B (LMStudio)
8100 MB
100
2824.0ms median
2026-03-02 23:43:50 View Details
14 Gemma 2B (LMStudio)
1500 MB
100
677.0ms median
2026-03-02 23:13:53 View Details
15 Gemma 2 9B (LMStudio)
5800 MB
100
2291.0ms median
2026-03-02 23:10:09 View Details
16 Gemma 2 2B (LMStudio)
1500 MB
100
705.0ms median
2026-03-02 23:01:51 View Details
17 Llama 3.1 8B (LMStudio)
4900 MB
100
1451.0ms median
2026-03-02 20:43:40 View Details
18 OLMo 3 7B (LMStudio)
4300 MB
100
1637.0ms median
2026-03-02 20:30:44 View Details
19 GPT-5 mini
100
1251.0ms median
2026-03-02 18:02:20 View Details
20 GPT-5 nano
100
2838.0ms median
2026-03-02 18:01:37 View Details
21 Claude Haiku 4.5
100
738.0ms median
2026-03-02 18:00:41 View Details
22 Llama 3.2 1B (LMStudio)
1300 MB
0
463.0ms median
2026-03-03 00:16:09 View Details
23 Llama 2 7B (LMStudio)
4900 MB
0
1999.0ms median
2026-03-03 00:03:23 View Details
Questions

Question
Write Python 3.12 code only.
Define exactly one function named hello_world.
The function must print exactly: Hello world
Do not use any imports (no numpy, requests, or other libraries).
Sandbox note: dunder attribute access is blocked (for example, type(x).__name__). Avoid names/attributes starting with '__'.

Expected output format:
- Return exactly one fenced Markdown code block starting with ```python and ending with ```.
- Put only valid Python code inside that block (no prose before/after).
- Use 4 spaces for indentation (not tabs).
- Do not return JSON and do not wrap code in a "function" key.

Task:
Write a Python 3.12 function that prints Hello world.
Question payload
{
  "question_text": "Write Python 3.12 code only.\nDefine exactly one function named hello_world.\nThe function must print exactly: Hello world\nDo not use any imports (no numpy, requests, or other libraries).\nSandbox note: dunder attribute access is blocked (for example, type(x).__name__). Avoid names/attributes starting with '__'.\n\nExpected output format:\n- Return exactly one fenced Markdown code block starting with ```python and ending with ```.\n- Put only valid Python code inside that block (no prose before/after).\n- Use 4 spaces for indentation (not tabs).\n- Do not return JSON and do not wrap code in a \"function\" key.\n\nTask:\nWrite a Python 3.12 function that prints Hello world.",
  "answer_type": "free_text",
  "correct_answer": {
    "function_name": "hello_world",
    "test_cases": [
      {
        "args": [],
        "expected": "Hello world",
        "capture_stdout": true
      }
    ]
  },
  "category": "coding",
  "difficulty": "medium",
  "tags": [
    "python",
    "coding",
    "security"
  ],
  "evaluation_criteria": {
    "exact_match": false,
    "case_sensitive": false,
    "contains": false,
    "required_fields": [],
    "tolerance": 0.0,
    "alternatives": []
  }
}