Tagged articles
32 articles
Page 1 of 1
Lisa Notes
Lisa Notes
Mar 27, 2026 · Fundamentals

Python Learning Day 60: Mastering pass, while/for Loops, break‑continue and String Operations

This tutorial‑style note walks through Python’s pass statement, the mechanics of while and for loops (including nested loops and common pitfalls), the use of break and continue, and a comprehensive overview of string creation, slicing, case conversion, searching, replacement, and encoding, all illustrated with concrete code examples and expected outputs.

PythonSlicingString Manipulation
0 likes · 23 min read
Python Learning Day 60: Mastering pass, while/for Loops, break‑continue and String Operations
Lisa Notes
Lisa Notes
Mar 19, 2026 · Fundamentals

Python Basics: Using break, continue, and Nested Loops

This tutorial explains how break and continue control loop execution in Python, provides concrete while‑loop examples with their outputs, and demonstrates both for‑ and while‑based nested loops for printing multi‑row patterns, illustrating syntax and behavior step by step.

Pythonbreakcontinue
0 likes · 4 min read
Python Basics: Using break, continue, and Nested Loops
Lisa Notes
Lisa Notes
Mar 16, 2026 · Fundamentals

Python Fundamentals: Using While Loops with Composite Data Types

This note explains Python's while loop, detailing its three-part structure, special considerations such as the one‑time initial condition, lack of ++/-- operators and do‑while syntax, and provides a concrete example that prints "hello world" ten times.

Control FlowLoopsPython
0 likes · 3 min read
Python Fundamentals: Using While Loops with Composite Data Types
Code Mala Tang
Code Mala Tang
Jul 21, 2025 · Fundamentals

Why Python’s Loop‑Else Isn’t a Mistake: The Hidden Power of Else in for/while

Python’s else clause, often misunderstood as part of if‑else, actually executes only when a for or while loop completes without encountering a break, offering a concise way to handle search patterns, break detection, and post‑loop actions, but it can confuse developers unfamiliar with this subtle feature.

Code PatternsControl Flowfor loop
0 likes · 7 min read
Why Python’s Loop‑Else Isn’t a Mistake: The Hidden Power of Else in for/while
php Courses
php Courses
Jul 15, 2025 · Fundamentals

Master C++ Loops: When to Use for, while, and do-while

Learn the three core C++ loop structures—for, while, and do-while—including their syntax, practical examples, control statements like break and continue, plus common pitfalls to avoid for reliable programming.

CLoopscontrol statements
0 likes · 6 min read
Master C++ Loops: When to Use for, while, and do-while
Python Crawling & Data Mining
Python Crawling & Data Mining
Oct 9, 2024 · Fundamentals

Master Python’s Number Guessing Game: Step-by-Step Code Walkthrough

This article walks through building a classic number‑guessing game in Python, presenting two community‑sourced solutions, detailed code snippets, explanations of the while‑loop and random modules, and enhancements for input validation and interactive range feedback, helping readers deepen their programming fundamentals.

Number Guessing GamePythoninput validation
0 likes · 6 min read
Master Python’s Number Guessing Game: Step-by-Step Code Walkthrough
Test Development Learning Exchange
Test Development Learning Exchange
Jul 11, 2024 · Fundamentals

Master Python Control Flow: If, For, While Explained with Real Examples

This guide walks beginners through Python's control flow structures—if statements, for loops, and while loops—explaining their syntax, demonstrating multiple conditional checks, iteration over sequences, and combined usage with clear code examples that illustrate filtering, accumulation, and prime number detection.

Control Flowfor loopif statement
0 likes · 4 min read
Master Python Control Flow: If, For, While Explained with Real Examples
Top Architect
Top Architect
May 11, 2022 · Fundamentals

Why Java’s for(;;) Loop Exists and Its Bytecode Equivalence to while(true)

The article explains the origin of Java’s for(;;) infinite loop syntax, compares it with while(true) through source‑code searches and bytecode analysis, and concludes that both constructs compile to identical bytecode, making performance differences negligible while also providing related promotional links.

JDKJavafor loop
0 likes · 5 min read
Why Java’s for(;;) Loop Exists and Its Bytecode Equivalence to while(true)
Sohu Tech Products
Sohu Tech Products
Dec 22, 2021 · Fundamentals

The Fastest Way to Loop in Python: Using Built‑in Functions and Math Instead of While/For Loops

This article demonstrates that in Python, plain while and for loops are significantly slower than using built‑in functions like sum or applying a direct mathematical formula, because the former execute extra Python‑level boundary checks and increments, making the latter the most efficient looping alternatives.

Sumbuilt-in functionsfor loop
0 likes · 7 min read
The Fastest Way to Loop in Python: Using Built‑in Functions and Math Instead of While/For Loops
Top Architect
Top Architect
May 30, 2021 · Backend Development

Comparing Java's for(;;) and while(true) Loops and Their Generated Bytecode

The article explains the historical origin of Java's for(;;) loop, compares it with while(true) in terms of readability and bytecode generation, and shows that both constructs compile to identical bytecode in the standard javac compiler, making performance differences negligible.

JavaLoopsbytecode
0 likes · 4 min read
Comparing Java's for(;;) and while(true) Loops and Their Generated Bytecode
Liangxu Linux
Liangxu Linux
May 25, 2020 · Operations

Automate Network Ping Checks with Bash while/until Loops

This guide shows how to use Bash while and until loops to repeatedly run a ping command, pause between attempts, and stop automatically once the network connection succeeds, including a quick trick to repeat the previous command until it succeeds.

BashShellping
0 likes · 5 min read
Automate Network Ping Checks with Bash while/until Loops
MaGe Linux Operations
MaGe Linux Operations
Nov 24, 2017 · Operations

Master Linux Shell Flow Control: If, For, While, Until, and Case Explained

This article provides a comprehensive guide to Linux shell flow‑control constructs, covering conditional statements (if/elif/else), loops (for, while, until), and selection statements (case, select), complete with syntax explanations, practical examples, and execution results to help readers master shell scripting.

Case statementFlow Controlfor loop
0 likes · 6 min read
Master Linux Shell Flow Control: If, For, While, Until, and Case Explained
MaGe Linux Operations
MaGe Linux Operations
Feb 26, 2017 · Fundamentals

Master Python Nested Loops in 3 Minutes: For & While Examples

This concise guide explains how Python supports nesting loops, shows the exact syntax for embedding for‑loops inside while‑loops and vice versa, and provides a complete example that prints all prime numbers between 2 and 100, complete with output screenshots.

Prime NumbersPythonfor loop
0 likes · 2 min read
Master Python Nested Loops in 3 Minutes: For & While Examples
MaGe Linux Operations
MaGe Linux Operations
Feb 23, 2017 · Fundamentals

Master Python’s while Loop: From Basics to Infinite Loops

This article explains Python’s while loop syntax, how conditions control execution, the use of continue, break, and else clauses, demonstrates infinite loops, and provides visual flowcharts and code examples to help readers grasp loop control structures effectively.

Control FlowLoopsPython
0 likes · 4 min read
Master Python’s while Loop: From Basics to Infinite Loops