Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
33
def
ten_pence(x):
34
return
0
if
x < 0
else
ten_pence(x - 10) + five_pence(x)
35
36
37
def
twenty_pence(x):
Callers
1
twenty_pence
Function · 0.85
Calls
1
five_pence
Function · 0.85
Tested by
no test coverage detected