diff options
| author | Walt Mankowski <waltman@pobox.com> | 2022-07-16 20:41:38 -0400 |
|---|---|---|
| committer | Walt Mankowski <waltman@pobox.com> | 2022-07-16 20:41:38 -0400 |
| commit | 30ccbd6b2aa92693bd2cd6dce4bce71ae9d7dd5e (patch) | |
| tree | f084b7859be918db3b7d729302c74681cfdaa46e /challenge-173/walt-mankowski/python/ch-2.py | |
| parent | c04831d7a245601dae441b8cd2993e1cc8c999cb (diff) | |
| download | perlweeklychallenge-club-30ccbd6b2aa92693bd2cd6dce4bce71ae9d7dd5e.tar.gz perlweeklychallenge-club-30ccbd6b2aa92693bd2cd6dce4bce71ae9d7dd5e.tar.bz2 perlweeklychallenge-club-30ccbd6b2aa92693bd2cd6dce4bce71ae9d7dd5e.zip | |
Python solutions to challenge 173
Diffstat (limited to 'challenge-173/walt-mankowski/python/ch-2.py')
| -rw-r--r-- | challenge-173/walt-mankowski/python/ch-2.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/challenge-173/walt-mankowski/python/ch-2.py b/challenge-173/walt-mankowski/python/ch-2.py new file mode 100644 index 0000000000..e12d79a883 --- /dev/null +++ b/challenge-173/walt-mankowski/python/ch-2.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python +from functools import reduce + +sylvester = [] +while len(sylvester) < 10: + sylvester.append(reduce(lambda x,y: x*y, sylvester, 1) + 1) + +for syl in sylvester: + print(syl) |
