PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
i = 1#define the counter
print("I made a loop without a loop!!!")
print("I basacally called the function inside itself and used a counter to change the interations.\n Tell me what you think in the comments!\n\n")
def a(i):
if i <=50:#the number of times your loop runs.
print("loop\tnumber\t:\t",i)
#\t! is like tab a bit like \n
i=i+1 # this part is very important,it increases the counter after you print it but before it calls itself.
a(i)
a(i)
Enter to Rename, Shift+Enter to Preview
OUTPUT
Запуск