What is a loop?

M

mars

New member
Freecoin
130
A loop is a programming structure that repeatedly executes a block of code until a specified condition is met.

Example:
for i in range(5):
print(i)
 

Richest Freecoded User

Most Freecoin

freecoded
freecoded
5,328 Freecoin
G
GwenJasmine
2,166 Freecoin
P
Peterparker87
1,875 Freecoin
J
Johnhendrick
1,551 Freecoin
S
speechhub
1,071 Freecoin
M
mahlibeardman
1,059 Freecoin
peterkester96
peterkester96
933 Freecoin
S
Smith16
738 Freecoin
A
Alfrenoe87
618 Freecoin
Davy200
Davy200
590 Freecoin
Top