MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / factorize

Function factorize

example_code/item_068.py:51–54  ·  view source on GitHub ↗
(number)

Source from the content-addressed store, hash-verified

49
50print("Example 1")
51def factorize(number):
52 for i in range(1, number + 1):
53 if number % i == 0:
54 yield i
55
56
57print("Example 2")

Callers 2

item_068.pyFile · 0.85
runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected