gglink.ir

Lesson 1: Python Introduction

Welcome to Python programming! Python is known for its simple, readable syntax and is perfect for beginners.

What You'll Learn

  • Python installation and setup
  • Basic Python syntax
  • Variables and data types
  • Input and output
  • Your first Python program

Python Installation

Before we start coding, you'll need to install Python on your computer.

Windows

  1. Visit python.org
  2. Download the latest Python version
  3. Run the installer and follow the setup wizard

macOS

Python is usually pre-installed, but you can install the latest version using Homebrew:

brew install python

Linux

Most Linux distributions come with Python pre-installed. To install the latest version:

sudo apt update
sudo apt install python3

Your First Python Program

Let's write a simple "Hello, World!" program:

print("Hello, World!")

Resources