Menu
CoddyTech

Run the Python Workspace

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

Bring your C# experience with variables, methods, loops, and collections. You do not need to complete another Coddy course first. This course runs Python 3.11-compatible code and introduces its object model before the project. C# examples are read-only comparisons, not a second editor.

C# transfer checkpoint

C# Console.WriteLine and Python print both write this line. The editor executes the supplied Python file.

C# reference excerpt: executable statements assume using System; type-only excerpts illustrate the declared contract.

Console.WriteLine("Python is ready");

Python pattern

print("Python is ready")

Open main.py, the first editable file. The supplied driver.py launches it. Leave the starter unchanged for this run; later lessons provide genuine implementation modules and locked input/output drivers.

challenge icon

Challenge

Beginner

Run the supplied main.py unchanged. It needs no input and prints exactly Python is ready and a newline. Your first success is running Python, not translating an entire C# project.

Editable implementation files: main.py. The locked driver.py is the supplied launcher or input/output harness and must remain unchanged.

Use the supplied input contract without prompts. Print only the required lines, each ending in a newline.

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 C# Developers

Practice on your own: Online Python compiler