Menu
CoddyTech

Run Your First Python Program

Lesson 1 of 48 in Coddy's Python for GDScript Developers course.

You already know GDScript conditions, loops, Arrays, Dictionaries, functions, and script classes. Run the supplied Python statement in main.py. Python executes module-level statements without _ready, _init, or a SceneTree. The locked driver.py starts your editable module. This course teaches Python from its first run, checking the semantic differences behind familiar indentation. No previous Python knowledge is needed.

challenge icon

Challenge

Beginner

Run the supplied program once. There is no input. It prints Python is ready followed by a newline. No edits are needed.

Your code goes in main.py. The locked driver.py starts your program and cannot be edited.

Try it yourself

# Starts the program in main.py. Edit main.py to solve the challenge.
from runpy import run_module

run_module("main", run_name="__main__")

All lessons in Python for GDScript Developers

Practice on your own: Online Python compiler