index
:
clp
main
A small Python compiler with optimizer written in Java
dcariotti
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
progs
/
a123.py
blob: 118c573e902ff6b5b4c3b167d2a0e0dcc1be8a76 (
plain
)
1
2
def
power_base_sum
(
base
,
power
):
return
sum
([
int
(
i
)
for
i
in
str
(
pow
(
base
,
power
))])