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

Function twenty_pence

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

Source from the content-addressed store, hash-verified

35
36
37def twenty_pence(x):
38 return 0 if x < 0 else twenty_pence(x - 20) + ten_pence(x)
39
40
41def fifty_pence(x):

Callers 1

fifty_penceFunction · 0.85

Calls 1

ten_penceFunction · 0.85

Tested by

no test coverage detected