Master Python Basics: Setup to First Scripts

Master Python Basics: Setup to First Scripts

🧰

Instant Toolkit

2 artifacts

📋
Step-by-Step Guide

1

Step 1: Set Up Your Python Environment

  1. Visit python.org/downloads and download the latest Python 3.14.3 installer for your OS.

Windows:

  • Run the .exe installer.
  • Important: Check 'Add Python to PATH' during installation.

macOS:

  • Run the .pkg installer and follow prompts.

Linux: Most distros have Python; install via package manager (e.g., sudo apt install python3 on Ubuntu).

  1. Open a terminal/command prompt and verify:
python --version

Expected: Python 3.14.3

  1. Launch IDLE (search for it in your apps) and enter interactive mode:
>>> print('Hello, World!')
Hello, World!
  1. Save your first script: File > New File, paste the print statement, save as hello.py, Run > Run Module (F5).
Why this step matters:
  • -Establishes a working environment for hands-on practice
  • -Enables running real code immediately for better retention
30-60 minutes
Python.org installer, Command terminal, IDLE editor
$0
Definition of Done
  • python --version shows 3.14.3
  • IDLE prints 'Hello, World!' successfully
Common Mistakes to Avoid

Forgetting to add Python to PATH on Windows

Reinstall and check the 'Add Python to PATH' box

Using Python 2.x instead of 3.x

Download explicitly from python.org/downloads/ and select 3.14.3

2

Following along, or just reading? 👀

Spin up a personalized “learn Python basics” plan you can save, check off, and return to anytime — unlimited on the free trial.

Start free trial →
3
4
5