aboutsummaryrefslogtreecommitdiff
path: root/challenge-153/abigail/python/ch-1.py
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-153/abigail/python/ch-1.py')
-rw-r--r--challenge-153/abigail/python/ch-1.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/challenge-153/abigail/python/ch-1.py b/challenge-153/abigail/python/ch-1.py
new file mode 100644
index 0000000000..6f287fa129
--- /dev/null
+++ b/challenge-153/abigail/python/ch-1.py
@@ -0,0 +1,23 @@
+#!/usr/local/bin/python3
+
+#
+# See https://theweeklychallenge.org/blog/perl-weekly-challenge-153
+#
+
+#
+# Run as: python ch-1.py
+#
+
+import sys;
+
+fac = 1
+sum = 1
+
+sys . stdout . write (str (sum))
+
+for n in range (1, 10):
+ fac = fac * n
+ sum = sum + fac
+ sys . stdout . write (" " + str (sum))
+
+sys . stdout . write ("\n")