Tag

iteration

0 views collected around this technical thread.

Test Development Learning Exchange
Test Development Learning Exchange
Feb 26, 2025 · Fundamentals

Understanding Python's range() Function: Syntax, Usage, and Practical Examples

This article introduces Python's built‑in range() function, explains its syntax and parameters, and provides ten clear code examples that demonstrate basic counting, custom start‑stop values, step sizes, reverse iteration, list creation, summation, string traversal, bulk list updates, 2‑D coordinate generation, and spaced element access.

Pythoniterationloops
0 likes · 7 min read
Understanding Python's range() Function: Syntax, Usage, and Practical Examples
Model Perspective
Model Perspective
Feb 20, 2025 · Fundamentals

Why Feedback Turns Simple Repetition into Real Progress

The article explains how feedback transforms mere repetition into meaningful iteration by comparing recursive sequences and linear functions, illustrating the concept with learning cycles and Kandinsky’s artistic process, and showing when feedback matters most for effective growth.

Feedbackartiteration
0 likes · 8 min read
Why Feedback Turns Simple Repetition into Real Progress
Test Development Learning Exchange
Test Development Learning Exchange
Jan 16, 2025 · Fundamentals

List Comprehensions vs Generator Expressions in Python: Key Differences

This article compares Python's list comprehensions and generator expressions, highlighting differences in memory usage, execution timing, reusability, suitable scenarios, and how to convert each into other sequence types, with clear code examples for each point.

Memory EfficiencyPythongenerator expression
0 likes · 5 min read
List Comprehensions vs Generator Expressions in Python: Key Differences
php中文网 Courses
php中文网 Courses
Nov 8, 2024 · Backend Development

Simulating Recursion in PHP Using Stacks, Loops, and Goto

This article explains how to replace recursive functions in PHP with stack‑based iteration, loop‑driven depth‑first tree traversal, and even a goto‑based approach, providing complete code examples and discussing the trade‑offs of each method.

Stackalgorithmgoto
0 likes · 7 min read
Simulating Recursion in PHP Using Stacks, Loops, and Goto
Test Development Learning Exchange
Test Development Learning Exchange
Oct 17, 2024 · Fundamentals

Iterating Dictionaries in Python: Keys, Values, Items, enumerate, Conditional Filtering, and Comprehensions

This guide demonstrates six common ways to iterate over Python dictionaries—including traversing keys, values, key‑value pairs, using enumerate for indexed access, applying conditional filters within loops, and employing dict comprehensions for efficient transformation—while explaining the appropriate use cases and performance considerations.

ItemsPythonValues
0 likes · 5 min read
Iterating Dictionaries in Python: Keys, Values, Items, enumerate, Conditional Filtering, and Comprehensions
Model Perspective
Model Perspective
Oct 13, 2024 · Fundamentals

What Cartoon Drawing Can Teach You About Mathematical Modeling

The author reflects on learning to draw a cheerful cartoon sheep and draws insightful parallels to mathematical modeling, showing how abstraction, overall layout, detailed refinement, and iterative optimization in art mirror the steps of building and improving models for real‑world problems.

abstractionanalogycartoon drawing
0 likes · 6 min read
What Cartoon Drawing Can Teach You About Mathematical Modeling
Test Development Learning Exchange
Test Development Learning Exchange
Sep 21, 2024 · Fundamentals

Python List Operations: Sorting, Traversing, Deleting, Adding, Modifying, Indexing, and Basic List Functions

This tutorial demonstrates essential Python list operations, covering case‑sensitive and case‑insensitive sorting, reverse ordering, iteration with for and while loops, element removal by value or index, clearing, appending, inserting, extending, item modification, slicing, indexing, length checking, and mixed‑type lists, all illustrated with clear code examples.

CRUDPythonbasics
0 likes · 5 min read
Python List Operations: Sorting, Traversing, Deleting, Adding, Modifying, Indexing, and Basic List Functions
Architect's Guide
Architect's Guide
Sep 9, 2024 · Fundamentals

Why HashMap.keySet() Traversal Performs Two Iterations and How entrySet() Is More Efficient

This article explains the internal mechanism of Java's HashMap traversal, showing that using keySet() triggers two passes—once to create an iterator and once to fetch values—while entrySet() or Map.forEach() can iterate in a single pass, and it walks through the relevant source code to illustrate the process.

HashMapIteratorJava
0 likes · 9 min read
Why HashMap.keySet() Traversal Performs Two Iterations and How entrySet() Is More Efficient
Test Development Learning Exchange
Test Development Learning Exchange
Aug 30, 2024 · Fundamentals

10 Practical Ways to Iterate and Transform a Pandas DataFrame in Python

This article demonstrates ten practical techniques for iterating over rows, columns, and values of a pandas DataFrame and applying common transformations such as apply, vectorized operations, map, mask, groupby, cumulative sum, and rolling calculations, each illustrated with concise Python code examples.

data-manipulationdataframeiteration
0 likes · 5 min read
10 Practical Ways to Iterate and Transform a Pandas DataFrame in Python
Test Development Learning Exchange
Test Development Learning Exchange
Jul 30, 2024 · Fundamentals

Advanced Python Iteration Techniques with Practical Examples

This article presents ten advanced Python iteration techniques—including list, dictionary, and set comprehensions, zip, enumerate, itertools utilities, and generator expressions—each illustrated with clear code examples to help developers write more concise, efficient, and readable code.

GeneratorPythoncomprehension
0 likes · 5 min read
Advanced Python Iteration Techniques with Practical Examples
Top Architect
Top Architect
Jul 27, 2024 · Backend Development

Various Ways to Iterate Over a Java HashMap with Code Examples

This article demonstrates seven common techniques for iterating over a Java HashMap—including iterator, entrySet, keySet, for‑each loops, lambda expressions, and both single‑threaded and parallel Streams API—providing concise code examples and performance notes for each method.

BackendCode ExampleHashMap
0 likes · 10 min read
Various Ways to Iterate Over a Java HashMap with Code Examples
Architect's Tech Stack
Architect's Tech Stack
Jun 1, 2024 · Backend Development

Understanding HashMap keySet Traversal and Iterator Mechanism in Java

This article explains why iterating a Java HashMap with keySet() involves two passes, examines the underlying iterator implementation, and walks through the relevant source code of HashMap’s KeySet, KeyIterator, and HashIterator classes to clarify the internal traversal mechanism.

BackendHashMapIterator
0 likes · 8 min read
Understanding HashMap keySet Traversal and Iterator Mechanism in Java
Python Programming Learning Circle
Python Programming Learning Circle
May 18, 2024 · Fundamentals

Pandas Data Modification, Iteration, and Function Application Techniques

This article provides a comprehensive guide to using Pandas for data cleaning and transformation, covering value modification, replacement, filling missing data, renaming, column addition, row insertion, merging, deletion, advanced filtering, iteration methods, and applying functions such as pipe, apply, agg, and transform.

Functionsdata cleaningdata-manipulation
0 likes · 9 min read
Pandas Data Modification, Iteration, and Function Application Techniques
Python Programming Learning Circle
Python Programming Learning Circle
Apr 30, 2024 · Fundamentals

Comprehensive Guide to Python Built-in Functions with Examples

This article provides a detailed overview of Python's 68 built-in functions, categorizing them into numeric operations, data structures, scope handling, iterators, and code execution, and includes clear code snippets and explanations to help beginners master fundamental Python capabilities.

Data TypesPythonTutorial
0 likes · 15 min read
Comprehensive Guide to Python Built-in Functions with Examples
Test Development Learning Exchange
Test Development Learning Exchange
Apr 25, 2024 · Fundamentals

Using Python’s enumerate Function to Boost Development Efficiency

This article explains how Python’s built‑in enumerate function can improve coding efficiency and simplify logic by providing intuitive index access, logical simplification, compatibility with various data types, customizable start values, and numerous practical examples for common programming tasks.

Efficiencycode examplesenumerate
0 likes · 7 min read
Using Python’s enumerate Function to Boost Development Efficiency
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 29, 2024 · Fundamentals

Binary Search: Fundamentals, Common Implementations, and Applications

Binary search is an efficient O(log n) algorithm for locating elements in sorted arrays or intervals, and this article explains its basic principles, recursive and iterative implementations, handling of edge cases, applications such as log file indexing, and extensions to rotated arrays and variable‑length data.

Searchalgorithmbinary search
0 likes · 18 min read
Binary Search: Fundamentals, Common Implementations, and Applications
Test Development Learning Exchange
Test Development Learning Exchange
Dec 19, 2023 · Fundamentals

Common Python Built‑in Functions: map, filter, reduce, sorted and More

This article introduces essential Python built‑in functions such as map, filter, reduce, sorted, any, all, zip, enumerate, reversed, chr, max, min, sum, join, list, tuple, set, frozenset, type and dir, explaining their purpose and providing concise example code for each.

Data StructuresPythonTutorial
0 likes · 7 min read
Common Python Built‑in Functions: map, filter, reduce, sorted and More
Java Architect Essentials
Java Architect Essentials
Dec 10, 2023 · Fundamentals

Common For‑Loop Optimizations in Java

This article presents more than ten practical techniques for writing faster, cleaner Java for‑loops, covering basic size caching, reverse iteration, iterator usage, enhanced for‑loops, nested loop reduction, exception handling placement, and method‑call minimization to improve overall program performance.

JavaOptimizationcoding best practices
0 likes · 8 min read
Common For‑Loop Optimizations in Java
Test Development Learning Exchange
Test Development Learning Exchange
Nov 25, 2023 · Fundamentals

Practical Examples of Python Iteration and Serialization Magic Methods

This article presents ten practical Python code examples demonstrating how to implement iteration and serialization magic methods, covering iterable objects, generators, indexed and sliced sequences, length, string and byte representations, as well as JSON, pickle, and XML serialization techniques.

CodeExamplesMagicMethodsPython
0 likes · 6 min read
Practical Examples of Python Iteration and Serialization Magic Methods