Python
Articles about Python
Category articles "Python"
Study all materials on this topic
The datetime Module: Working with Dates and Times
datetime is Python's standard module for working with dates and times. It's part of the standard library — no installation...
.env Files and Environment Variables: Keeping Secrets Out of Code
Imagine you wrote a program with an API key hardcoded in the source and pushed it to GitHub. An hour...
Python Virtual Environments: Why and How
When you start a second Python project and run pip install requests — that library gets installed globally, for the...
argparse: Command-Line Arguments in Python
When a script grows from a toy into a real tool, input() becomes inconvenient. Professional CLI programs accept arguments at...
Generators in Python: Lazy Evaluation and Streaming
When an API returns a large response — text spanning thousands of tokens — waiting for the full response is...
Common Python Beginner Mistakes: How to Avoid Them 🚨
Every Python developer makes the same mistakes at the start. The good news — knowing them in advance will save...
JSON: Persisting Data Like a Real Game 💾
Goal: Learn to save and load data in JSON format.
map() — Transform Everything at Once! 🔄
map() applies a function to every element of an iterable and returns the results.
filter() — Pick the Best! 🔍
filter() selects elements that pass a test (return True).
Lambda Functions: Tiny Smart Functions ⚡
A lambda is a way to create a small, single-line, anonymous function.
reduce() — Fold Everything into One! 🔽
reduce() folds a list down to a single value by applying a function sequentially.
List Comprehensions — Elegant Lists! ✨
A list comprehension is a way to build a list in one line instead of a loop.
Other categories
Study related topics
Want more materials?
Subscribe to updates and be the first to know about new articles!