MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / ten_pence

Function ten_pence

project_euler/problem_31/sol1.py:33–34  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

31
32
33def ten_pence(x):
34 return 0 if x < 0 else ten_pence(x - 10) + five_pence(x)
35
36
37def twenty_pence(x):

Callers 1

twenty_penceFunction · 0.85

Calls 1

five_penceFunction · 0.85

Tested by

no test coverage detected