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

Function fifty_pence

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

Source from the content-addressed store, hash-verified

39
40
41def fifty_pence(x):
42 return 0 if x < 0 else fifty_pence(x - 50) + twenty_pence(x)
43
44
45def one_pound(x):

Callers 1

one_poundFunction · 0.85

Calls 1

twenty_penceFunction · 0.85

Tested by

no test coverage detected