Fundamentals

Learn the essential concepts of Python from scratch with practical and easy examples for programming beginners.

Uso do with para abrir arquivos com segurança em Python
Fundamentals
Foto de perfil de Leandro Hirt da Academify

Python with: Files and Context Managers

Learn how Python's with statement safely opens files: automatic close, read/write modes, CSV handling, multiple files, and context manager basics.

Read more

Reading time: 3 minutes
June 3, 2026
Operações matemáticas usando o módulo math em Python
Fundamentals
Foto de perfil de Leandro Hirt da Academify

Python math: Roots, Trigonometry, and Logarithms

Learn Python's math module: sqrt, pow, ceil, floor, trig functions, logarithms, constants like pi and e, and special numeric checks

Read more

Reading time: 3 minutes
June 3, 2026
Uso do módulo time para controlar tempo em scripts Python
Fundamentals
Foto de perfil de Leandro Hirt da Academify

Python time: Sleep, Timestamps, Performance

Learn how Python's time module works: Unix timestamp, time.sleep() for pauses, localtime(), strftime() for date formatting, and measure execution time.

Read more

Reading time: 3 minutes
June 3, 2026
Uso da função zip para combinar listas em Python
Fundamentals
Foto de perfil de Leandro Hirt da Academify

Python zip(): Combine Iterables in Parallel

Learn how Python zip() works: combine iterables, loop over multiple lists, handle different lengths, unzip with *, and use zip_longest

Read more

Reading time: 2 minutes
June 3, 2026
Uso do módulo collections para estruturas avançadas em Python
Fundamentals
Foto de perfil de Leandro Hirt da Academify

Python collections: Counter, deque, defaultdict

Learn Python's collections module: namedtuple, Counter, defaultdict, and deque for better performance and readability than built-in lists and dicts.

Read more

Reading time: 4 minutes
June 3, 2026
Criação de geradores eficientes usando yield em Python
Fundamentals
Foto de perfil de Leandro Hirt da Academify

Python yield: Create Efficient Generators

Learn how Python yield works to create memory-efficient generators, process large files, build infinite sequences, and use generator pipelines.

Read more

Reading time: 6 minutes
June 3, 2026
Uso do operador walrus para atribuições inline em Python
Fundamentals
Foto de perfil de Leandro Hirt da Academify

Python Walrus Operator (:=): Assignment Expressions

Learn how Python's walrus operator (:=) works for assignment expressions inside if, while, and list comprehensions, with practical examples and

Read more

Reading time: 3 minutes
June 3, 2026
Geração de números aleatórios seguros usando secrets em Python
Fundamentals
Foto de perfil de Leandro Hirt da Academify

Python secrets: Generate Secure Random Values

Learn how Python's secrets module generates cryptographically secure random numbers, tokens, and passwords using randbelow, token_hex, token_urlsafe, and compare_digest.

Read more

Reading time: 4 minutes
June 1, 2026