Quick Answer
Install Python from python.org, open a code editor, create a file ending in .py, write print('Hello, world'), and save. Run it from your terminal with python your_file.py. That's a script. From there you add variables, input, and a loop or two, and you're writing real programs. This guide walks you through each step with code you can run.
Why Python is a good first language
Step 1: Install Python
Step 2: Pick a place to write code
Step 3: Write and run your first script
Step 4: Add variables and input
Step 5: Make a decision and a loop
Codecademy
Want to go from scripts to real projects?
Codecademy's Learn Python 3 course runs entirely in the browser with instant feedback as you type. It's a structured way to build on your first script and reach the point where you're writing full programs. Free to start.
Try Codecademy PythonThis is an outbound link. We are not in this platform's affiliate program and earn nothing if you sign up. We only recommend platforms we rate.
FAQ