🐍

Python & uv

🧑‍🍳 Cook

The versatile language

Python is excellent for scripts, AI, data, and backends. Easy to read and learn.


Installation

SystemCommand
macOSbrew install python
Windowswinget install Python.Python.3
LinuxAlready installed
# Verify
python3 --version

uv: The modern manager

uv is the new Python package manager (10x faster than pip).

# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh

# Create project
uv init my-project
cd my-project

# Add dependency
uv add requests

# Run
uv run python main.py

Basic concepts

Variables

name = "Ana"
age = 25
is_active = True

Functions

def greet(name: str) -> str:
    return f"Hello, {name}!"

# Call
message = greet("Ana")

Lists

fruits = ["apple", "pear", "grape"]

# List comprehension
uppercase = [f.upper() for f in fruits]

# Filter
long_ones = [f for f in fruits if len(f) > 4]

Dictionaries

user = {
    "name": "Ana",
    "age": 25,
    "email": "ana@email.com"
}

print(user["name"])

Virtual environments

# With uv (recommended)
uv venv
source .venv/bin/activate  # macOS/Linux
.venv\Scripts\activate     # Windows

# With traditional venv
python3 -m venv .venv

Practice

CLI Tool with Python


Useful links

Want to go further?

This is one piece. GenAI Builder is the whole map.

Ten domains, from the terminal to energy and law, five levels earned with real evidence and an AI mentor. At your own pace, in English and Spanish.

See the courseLifetime access · 30-day guarantee

© 2026 luxIA.us - All rights reserved

Created by Alann Reyes