aboutsummaryrefslogtreecommitdiff
path: root/challenge-180/laurent-rosenfeld/python/ch-2.py
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-180/laurent-rosenfeld/python/ch-2.py')
-rw-r--r--challenge-180/laurent-rosenfeld/python/ch-2.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/challenge-180/laurent-rosenfeld/python/ch-2.py b/challenge-180/laurent-rosenfeld/python/ch-2.py
new file mode 100644
index 0000000000..a8eaeb0573
--- /dev/null
+++ b/challenge-180/laurent-rosenfeld/python/ch-2.py
@@ -0,0 +1,4 @@
+for test in [3, [1,4,2,3,5]], [4, [9,0,6,2,3,8,5]]:
+ i = test[0]
+ nums = test[1]
+ print(i, nums, " => ", list(filter(lambda n: n>i, nums)))