Ok its just nested looping using functions... so a loop calling multiple loops
the code could have been written like this to
Code: Select all
while 1:
print "1+"
while 1:
print "1-"
break
for i in range(5):
print str(i) + "-"
for i in range(10):
print i
while 1: #loops infinite which is the main loop and prints "1+" to the console
the second while 1: prints 1- to the console then breaks out of that loop to continue to the rest of the code which is
for i in range(5) which prints out the numbers 0 -4 with a minus sign - then continues to for i in range(10) and prints out the numbers 0 -9 then the loop starts over doing the same in that sequence indefinitley
I was just exploring nested loops and was half asleep when I wrote it haha it really does nothing its just gibberish code to explore an idea while I was near passed out anyway
*cheers
Maboroshi