Tagged articles
3 articles
Page 1 of 1
MaGe Linux Operations
MaGe Linux Operations
Feb 21, 2019 · Fundamentals

Avoid Common Python Pitfalls: Better Loops, List Comprehensions, and Performance Tips

This article gathers subtle yet frequent anti‑patterns that new Python developers encounter—misusing range, avoiding list comprehensions, overlooking set/dict look‑ups, variable‑scope surprises, and PEP8 style rules—and offers clear, practical alternatives to write cleaner, faster, and more maintainable code.

Loopsbest-practicescoding standards
0 likes · 10 min read
Avoid Common Python Pitfalls: Better Loops, List Comprehensions, and Performance Tips
MaGe Linux Operations
MaGe Linux Operations
Sep 11, 2018 · Fundamentals

Avoid Common Python Pitfalls: Iteration, List Comprehensions, and Code Style

This guide walks beginner Python developers through frequent anti‑patterns—misusing range, overlooking list comprehensions, inefficient membership checks, variable‑scope surprises, and PEP 8 style rules—offering clear alternatives and best‑practice tips to write cleaner, more reliable code.

Pythonbest-practicescoding anti-patterns
0 likes · 10 min read
Avoid Common Python Pitfalls: Iteration, List Comprehensions, and Code Style