Learn practical skills, build real-world projects, and advance your career

LOOPS

A loop is a sequence of instructions that is repeated until a certain condition is met.

For Loops

colors = ['red','blue','pink','black','yellow']
for color in colors:
    print(color)
red blue pink black yellow
fruit = 'Watermelon'
for i in fruit:
    print(i)
W a t e r m e l o n