MCPcopy Index your code
hub / github.com/geekcomputers/Python / cycle

Function cycle

Recursion Visulaizer/recursionVisualizer.py:45–56  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

43
44
45def cycle(i):
46 if i < 10:
47 return
48 else:
49 try:
50 tree(random.randint(1, i))
51 tree(random.randint(1, i * 2))
52 except:
53 print("An exception occured")
54 else:
55 print("No Exception occured")
56 print("cycle loop complete")
57
58
59def fractal(i):

Callers 1

fractalFunction · 0.85

Calls 1

treeFunction · 0.85

Tested by

no test coverage detected