summaryrefslogtreecommitdiff
path: root/progs/a123.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a123.py')
-rw-r--r--progs/a123.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/progs/a123.py b/progs/a123.py
new file mode 100644
index 0000000..118c573
--- /dev/null
+++ b/progs/a123.py
@@ -0,0 +1,2 @@
+def power_base_sum(base, power):
+ return sum([int(i) for i in str(pow(base, power))]) \ No newline at end of file