diff options
Diffstat (limited to 'challenge-122/laurent-rosenfeld/python/ch-1.py')
| -rw-r--r-- | challenge-122/laurent-rosenfeld/python/ch-1.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/challenge-122/laurent-rosenfeld/python/ch-1.py b/challenge-122/laurent-rosenfeld/python/ch-1.py new file mode 100644 index 0000000000..5bb3db15e6 --- /dev/null +++ b/challenge-122/laurent-rosenfeld/python/ch-1.py @@ -0,0 +1,5 @@ +n = list(range(10, 100, 10)) # [10, 20 ... 90] +mvg = [n[0]] +for i in range(1, 9): + mvg.append((mvg[i-1] * i + n[i]) / (i + 1)) +print(mvg) |
