MCPcopy Create free account
hub / github.com/dabeaz/python-cookbook / countdown

Function countdown

src/9/defining_decorators_as_classes/example3.py:40–42  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

38@timethis
39@profiled
40def countdown(n):
41 while n > 0:
42 n -= 1
43
44if __name__ == '__main__':
45 print(add(2,3))

Callers 1

example3.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected