Menu
CoddyTech

Run Your First Python Program

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

You already write Lua scripts and functions. Open main.py and run the supplied Python print statement. Python, like Lua, can execute statements at the top level. Its indentation, collection types, and object model differ. The locked driver.py executes your editable module and supplies input/output in later tasks. This standalone course begins with Python basics before moving to functions, classes, 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 Lua Developers

Practice on your own: Online Python compiler