Tagged articles
9 articles
Page 1 of 1
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
php Courses
php Courses
Jul 16, 2025 · Fundamentals

Master C++ Loop Control: When to Use break vs continue

This article explains C++ loop control statements, detailing the syntax, use cases, and differences of break and continue, and provides multiple code examples demonstrating how to exit loops early or skip iterations for tasks such as searching and data filtering.

Cbreakcontinue
0 likes · 7 min read
Master C++ Loop Control: When to Use break vs continue
Python Programming Learning Circle
Python Programming Learning Circle
Jul 22, 2022 · Fundamentals

Techniques for Exiting Nested Loops in Python

This article explains several methods to break out of nested loops in Python, including using identical break conditions, flag variables, raising exceptions, combining else clauses, and leveraging function returns, illustrated with a prime-number game example and complete code snippets.

Exception HandlingLoopsPython
0 likes · 6 min read
Techniques for Exiting Nested Loops in Python
Architect's Tech Stack
Architect's Tech Stack
Jun 5, 2022 · Backend Development

Why return in Java 8 forEach Behaves Like continue and How to Properly Terminate the Loop

This article explains that using return inside Java 8’s forEach does not stop the surrounding method but merely skips the current iteration, similar to continue, and presents several solutions—including using a traditional foreach loop, break, return (not recommended), and throwing an exception—to correctly terminate the loop.

/loopExceptionJava
0 likes · 5 min read
Why return in Java 8 forEach Behaves Like continue and How to Properly Terminate the Loop
Python Programming Learning Circle
Python Programming Learning Circle
Jan 24, 2022 · Fundamentals

Techniques to Exit Nested Loops in Python

This article explains several Python techniques—using identical break conditions, flag variables, exceptions, loop‑else clauses, and function returns—to exit nested loops, demonstrated through a prime‑number game where the program stops when a non‑prime input is entered.

Exception HandlingLoopsPython
0 likes · 6 min read
Techniques to Exit Nested Loops in Python