Som syntax ideas for loops:
For loops
Python:
for x in range(10):
print(x)
This language:
Start a counter at zero, and repeat the following ten times:
show the counter
While
Python:
while true:
print(“loops up”)
This language:
repeat the following forever:
Show loops up
break
Python:
while true:
if x == true:
break
This language:
repeat the following forever:
if the value of x is true, then:
stop the loop
Not sure whether any of these are readable, but that’s for discussion to decide right?
Som syntax ideas for loops:
For loops
Python:
This language:
While
Python:
This language:
break
Python:
This language:
Not sure whether any of these are readable, but that’s for discussion to decide right?