Menu
CoddyTech

Run Your First Python Program

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

You already write Luau functions and table-based programs. Open main.py and run the supplied Python print statement. Python executes top-level statements, with indentation, collections and classes replacing familiar Luau conventions. The locked driver.py starts the editable module and supplies input/output in later tasks. This course develops Python basics before functions, object design and a connected project.

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 Luau Developers

Practice on your own: Online Python compiler