Python Installation Guide
- Download Python:
- Run the Installer:
- Execute the downloaded installer.
- Follow the installation wizard instructions.
- Customize Installation (Optional):
- Customize installation options, like installation directory and adding Python to PATH.
- Verify Installation:
- Open a command prompt (Windows) or terminal (macOS/Linux).
- Type
python --version
or python3 --version
to verify installation.
- Install a Text Editor or IDE (Optional):
- Consider installing a text editor or IDE for coding (e.g., Visual Studio Code, PyCharm).
- Write and Run a Python Script:
- Open a text editor.
- Write some Python code (e.g.,
print("Hello, world!")
).
- Save the file with a
.py
extension (e.g., hello.py
).
- Open a command prompt or terminal.
- Navigate to the script’s directory.
- Run the script with
python hello.py
.
You’re now set up to start coding in Python!