Python
Python is the most popular programming language in the world, perfect for beginners due to its simple syntax. It's used in web dev, data science, AI, and game design. Our projects are short and fun, requiring no prior experience.
Ready to Build?
Platform initialized for Python.
Verify the What You Need checklist below, and then proceed to Project Steps to learn how to build Python projects.
01. What You Need
02. Vital Notes
Instructor notes and materials are always displayed in this amber color. They are meant to help you understand the project and how to teach it, but they are not necessary for students to read.
Python must be installed locally. Internet is required for installation but not for running projects.
Ensure IDLE is selected during the Python installation process.
Python is case-sensitive: print() is correct, but Print() or PRINT() will cause an error.
Copying code accurately is often the biggest hurdle; consider providing text for them to copy and paste (every code block has a copy option above it).
Watch the code colors in IDLE. If the text isn't coloring correctly, you likely have a syntax error (missing parentheses, typos, or wrong indentation).
Pro-Tip: Enable line numbers (Options > Show Line Numbers) to help students troubleshoot.
These instructions assume Python and IDLE are already installed.
Every project includes a print link which you can use to create student handouts.
03. Project Steps
Run IDLE
Open IDLE from your computer's applications or Start menu.
Check The Shell
You should see a '>>>' prompt. Type print('Hello!') and press Enter. If it says Hello, you are ready!
Create A New File
Click File > New File to open the actual code editor window.
Write Your Code
Type your Python code into this new window.
Save Your Code
Click File > Save, and ensure the filename ends with a .py extension.
Run Your Code
Press F5 or click Run > Run Module. The output will appear in the main IDLE shell window.
Fix Errors
If you see red error text, return to your code window, fix the typo, and run it again.
Keep Going
Repeat the Write, Save, and Run cycle to experiment.