// blog

Articles

// Control Flow
From here to there — range()

The problem...
Your for loop knows how to move through a string. One character at a time.
But what if you don't have a string? What if you just need to repeat something ten time…

01 May 2026 2 min read files [1] comments [0] 33 views
// Control Flow
Keeping score — the loop counter

The problem...
Your loop runs. But you have no idea what happened inside.
How many times did it run? What was the total? What changed?
You need a way to track what's happening …

01 May 2026 2 min read files [1] comments [0] 32 views
// Control Flow
Position and value — at the same time

The problem...
You're looping through a string. You have the character. But you also need to know where you are.
So you create a counter. You increment it manually. It works &md…

01 May 2026 1 min read files [1] comments [0] 33 views
// Control Flow
What if your loop had two lanes?

The problem...
You have two sequences. Names and scores. Questions and answers. Cities and temperatures.
You need to loop through both at the same time — matching item one…

01 May 2026 1 min read files [1] comments [0] 33 views
// Control Flow
FOR Mini Project — Caesar Cipher

The problem...
Julius Caesar encrypted his messages by shifting every letter a fixed number of positions in the alphabet.
A becomes D. B becomes E. C becomes F. With a shift of …

01 May 2026 1 min read files [1] comments [0] 32 views
// Control Flow
FOR Mini Project — Form Wannabe

The problem...
Every app has a form. Name. Age. Country. Email.
You fill it in, you submit, something happens.
You're not building a real form today. But you're closer than you…

01 May 2026 1 min read files [1] comments [0] 32 views