We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e335cf commit 61d91c5Copy full SHA for 61d91c5
Recursion Visulaizer/Meshimproved.PNG
275 KB
Recursion Visulaizer/recursionVisualizer.py
@@ -20,12 +20,13 @@ def tree(i):
20
t.left(2)
21
tree(i/2)
22
t.backward(num/5)
23
- tree(i/10)
+ tree(random.randint(1,100))
24
tree(random.randint(1,num))
25
tree(random.randint(1,num/2))
26
tree(random.randint(1,num/3))
27
28
29
30
t.forward(num/5)
31
t.right(2)
32
tree(3*i/4)
@@ -61,6 +62,6 @@ def fractal(i):
61
62
cycle(random.randint(1,i-2))
63
print('fractal execution complete')
64
-fractal(random.randint(1,20000))
65
+fractal(random.randint(1,200))
66
print('Execution complete')
67
turtle.done()
0 commit comments