Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
37
def
twenty_pence(x):
38
return
0
if
x < 0
else
twenty_pence(x - 20) + ten_pence(x)
39
40
41
def
fifty_pence(x):
Callers
1
fifty_pence
Function · 0.85
Calls
1
ten_pence
Function · 0.85
Tested by
no test coverage detected