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.

for-loopiterablelist
0 likes · 3 min read
Python For Loops: Working with Composite Data Types
Architect's Tech Stack
Architect's Tech Stack
Oct 13, 2024 · Backend Development

Should try‑catch be placed inside or outside a for loop?

This article discusses whether a try‑catch block should be placed inside or outside a Java for‑loop, explains the trade‑offs, and provides code examples illustrating both approaches to help developers write more robust exception‑handling logic.

backendbest-practicesexception-handling
0 likes · 4 min read
Should try‑catch be placed inside or outside a for loop?