summaryrefslogtreecommitdiff
path: root/advanced_python/exercises.rst
diff options
context:
space:
mode:
Diffstat (limited to 'advanced_python/exercises.rst')
-rw-r--r--advanced_python/exercises.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/advanced_python/exercises.rst b/advanced_python/exercises.rst
index ccec1ef..eeaa323 100644
--- a/advanced_python/exercises.rst
+++ b/advanced_python/exercises.rst
@@ -39,6 +39,13 @@ Exercises
#. Create a sequence of images in which the damped oscillator
(:math:`$e^{-x/10}sin(x)$`) slowly evolves over time.
+#. Given a list of numbers, find all the indices at which 1 is present.
+ numbers = [1, 1, 3, 4, 3, 6, 7, 8, 1, 2, 4, 1]
+
+#. Given a list of numbers, find all the indices at which 1 is present.
+ numbers = [1, 1, 3, 4, 3, 6, 7, 8, 1, 2, 4, 1]. Solve the problem using a
+ functional approach.
+
..
Local Variables:
mode: rst