
(Verse 1: The For Loop) ♪ When you need to count, from start to end, The For Loop is your coding friend! ♪ ♪ It runs a number of times, it’s clear to see, Like “1, 2, 3, 4, repeat after me!” ♪ (Chorus) ♪ Loops, loops, they go around, Helping code repeat, safe and sound! For, While, and Do-While too, Loops make coding fun for you! ♪ (Verse 2: The While Loop) ♪ The While Loop checks if something is true, It keeps on going until it’s through! ♪ ♪ It’s perfect for tasks that don’t have an end, Until the rule changes, it’ll loop again! ♪ (Chorus) ♪ Loops, loops, they go around, Helping code repeat, safe and sound! For, While, and Do-While too, Loops make coding fun for you! ♪ (Verse 3: The Do-While Loop) ♪ The Do-While Loop always starts to play, It’ll run at least once before it checks away! ♪ ♪ It’s great for trying a task one more time, Check the condition at the end of the line! ♪ (Chorus) ♪ Loops, loops, they go around, Helping code repeat, safe and sound! For, While, and Do-While too, Loops make coding fun for you! ♪ (Verse 4: The Foreach Loop) ♪ The Foreach Loop loves to run through a list, Each item it touches, none will be missed! ♪ ♪ It’s made for arrays and items galore, One by one, it keeps track of the score! ♪ (Chorus) ♪ Loops, loops, they go around, Helping code repeat, safe and sound! For, While, and Do-While too, Loops make coding fun for you! ♪ (Outro) ♪ Loops are handy, loops are neat, They help your code repeat, repeat! ♪ ♪ Use the right one, and you’ll soon see, Loops make coding fun and easy! ♪

