File: recurse4.py

package info (click to toggle)
pprofile 2.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 512 kB
  • sloc: python: 2,928; sh: 41; makefile: 3
file content (9 lines) | stat: -rw-r--r-- 156 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
from time import sleep
MAX_LEVEL = 5
def bar(level=0):
  if level < MAX_LEVEL:
    bar(level + 1)
    bar(level + 1)
    bar(level + 1)
  sleep(0.01)
bar()