aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubos Kolouch <lubos@kolouch.net>2020-01-02 15:06:50 +0100
committerLubos Kolouch <lubos@kolouch.net>2020-01-02 15:06:50 +0100
commitd3059df229345b82dcc8241da5e43b3197e13ea6 (patch)
treeeda0fddc78d9fc17734c41469858b89f8160d9d6
parent05b682fe65d547b1625af8f037753d09e27dc43b (diff)
downloadperlweeklychallenge-club-d3059df229345b82dcc8241da5e43b3197e13ea6.tar.gz
perlweeklychallenge-club-d3059df229345b82dcc8241da5e43b3197e13ea6.tar.bz2
perlweeklychallenge-club-d3059df229345b82dcc8241da5e43b3197e13ea6.zip
Challenge 2 Week 41 Python
-rw-r--r--challenge-041/lubos-kolouch/python/ch-2.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/challenge-041/lubos-kolouch/python/ch-2.py b/challenge-041/lubos-kolouch/python/ch-2.py
new file mode 100644
index 0000000000..02b509279e
--- /dev/null
+++ b/challenge-041/lubos-kolouch/python/ch-2.py
@@ -0,0 +1,8 @@
+#!python3
+
+l = [1,1]
+
+for i in range(2,20):
+ l.append(l[i-2]+l[i-1]+1)
+
+print(l)