Tagged articles
11 articles
Page 1 of 1
Lisa Notes
Lisa Notes
Mar 18, 2026 · Fundamentals

Python For Loops: Working with Composite Data Types

The article explains Python's for‑in loop syntax, describes common iterable types such as strings, lists, tuples and sets, details how the range function defines start and end values, and provides concrete code examples that print numbers, list elements and characters from both English and Chinese strings.

IterableListString
0 likes · 3 min read
Python For Loops: Working with Composite Data Types
Test Development Learning Exchange
Test Development Learning Exchange
May 22, 2025 · Fundamentals

Understanding Python Iterables: Concepts, Creation, Built‑in Functions, Comprehensions, Advanced Operations, and Generators

This article explains Python iterables, covering their basic concepts, how to create and use them with loops, iter() and next(), built‑in functions that accept iterables, comprehension techniques, advanced operations like zip, enumerate, filter, map, and their relationship with generators for efficient data processing.

ComprehensionsGeneratorsIterable
0 likes · 7 min read
Understanding Python Iterables: Concepts, Creation, Built‑in Functions, Comprehensions, Advanced Operations, and Generators
Code Mala Tang
Code Mala Tang
Apr 15, 2025 · Fundamentals

What Really Happens Inside a Python for-loop? Uncover the Magic of Iterators

This article demystifies Python’s for-loop by explaining how iterable objects and iterators work under the hood, illustrating the iterator protocol with code examples, and providing practical custom iterator implementations, common pitfalls, and tips for efficient data processing.

IterablePythondata-processing
0 likes · 9 min read
What Really Happens Inside a Python for-loop? Uncover the Magic of Iterators
MaGe Linux Operations
MaGe Linux Operations
Jan 11, 2025 · Fundamentals

Master Python Iterators and Generators: From Basics to Advanced Usage

This article explains Python iterators, iterables, and generators, detailing their definitions, core methods, advantages, disadvantages, and practical code examples—including iterator objects, generator creation via comprehensions and the yield keyword, decorator integration, and mutable data handling—providing a comprehensive guide for developers.

DecoratorIterableIterator
0 likes · 14 min read
Master Python Iterators and Generators: From Basics to Advanced Usage
Satori Komeiji's Programming Classroom
Satori Komeiji's Programming Classroom
Sep 18, 2024 · Fundamentals

How Python Implements Iterators: From __iter__ to __next__

This article explains Python's iterator protocol by showing how objects become iterable through __iter__, how the built‑in iter function creates iterator objects, the CPython internals of PyObject_GetIter, and how the __next__ method advances elements, with concrete code examples and source‑level snippets.

CPythonIterableIterator
0 likes · 16 min read
How Python Implements Iterators: From __iter__ to __next__
Python Programming Learning Circle
Python Programming Learning Circle
Mar 28, 2021 · Fundamentals

Understanding Python's for Loop: Syntax, Else Clause, Iterables, Iterators, and Bytecode Disassembly

This article explains Python's for loop in depth, covering basic syntax, the optional else clause, the concepts of iterables and iterators, how to implement custom iterators and iterable objects, the loop's execution flow, an equivalent while‑loop implementation, and a step‑by‑step disassembly of the generated bytecode.

Iterablebytecodedisassembly
0 likes · 12 min read
Understanding Python's for Loop: Syntax, Else Clause, Iterables, Iterators, and Bytecode Disassembly
MaGe Linux Operations
MaGe Linux Operations
Mar 10, 2020 · Fundamentals

Master Python Iterables, Iterators, and Generators: A Complete Guide

This article explains the concepts and differences between Python iterables, iterators, and generators, shows how to create custom iterable and iterator classes, demonstrates the use of __iter__ and __next__ magic methods, and provides practical generator examples for efficient lazy evaluation.

IterableIteratorfundamentals
0 likes · 8 min read
Master Python Iterables, Iterators, and Generators: A Complete Guide