#python
Explore materials tagged "python" from expert practitioners. Up-to-date articles and useful tips to help you grow.
Articles with tag "#python"
All materials on the topic python
.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...
The requests Library: HTTP Requests from Python
requests is the most downloaded Python library in the world β over 300 million downloads per month. It makes HTTP...
JSON: Persisting Data
Goal: Learn to save and load data in JSON format.
map() β Transform Every Element!
The map() function lazily applies a transformation to every item in an iterable.
filter() β Pick What You Need!
The filter() function keeps the elements for which a predicate returns a truthy value.
Lambda Functions
A lambda is a small, anonymous, single-line function.
reduce() β Fold Everything into One!
The reduce() function combines an iterable into one value by repeatedly applying a two-argument function.
List Comprehensions β Elegant Lists
A list comprehension builds a new list from an iterable with an optional transformation and filtering condition.
CSV: Working with Tables
CSV (Comma-Separated Values) is a text format for storing tabular data. It opens in Excel and Google Sheets and is...
Similar tags
Study related topics
Looking for more on the topic?
Study all our materials or subscribe to updates