MCPcopy Create free account
hub / github.com/ActiveState/code / dump

Method dump

recipes/Python/577475_Power_Of_Two/recipe-577475.py:56–64  ·  view source on GitHub ↗
(digits, digitsPerRow = 50)

Source from the content-addressed store, hash-verified

54
55 @staticmethod
56 def dump(digits, digitsPerRow = 50):
57 count = 0
58 text = ""
59 for digit in digits:
60 if count % digitsPerRow == 0:
61 text += "\n"
62 text += "%d" % (digit)
63 count += 1
64 print(text)
65
66def main():
67 n = 4000

Callers 9

saveMethod · 0.45
writeFunction · 0.45
save_logMethod · 0.45
__init__Method · 0.45
mainFunction · 0.45
save_settingsMethod · 0.45
recordFunction · 0.45
saveMethod · 0.45
saveMethod · 0.45

Calls 1

printFunction · 0.85

Tested by

no test coverage detected