From 60183b90a0cb43a3c5bccf64c450ac4e925d3fdc Mon Sep 17 00:00:00 2001 From: Liron-Mizrahi <91504420+lironmiz@users.noreply.github.com> Date: Wed, 4 Jan 2023 08:42:59 +0200 Subject: [PATCH] Create unit7_ex7.2.3.py --- unit7_ex7.2.3.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 unit7_ex7.2.3.py diff --git a/unit7_ex7.2.3.py b/unit7_ex7.2.3.py new file mode 100644 index 0000000..513cd13 --- /dev/null +++ b/unit7_ex7.2.3.py @@ -0,0 +1,17 @@ +# exercise 7.2.3 from unit 7 +''' +Here is a piece of code, but it is missing the arguments that are passed to the range function: + +for num in range(___, ___, ___): + print(number) +Mark all the options where the values (start, stop, step) will give the following output: + +0 +-3 +-6 +-9 +''' + +# Answer: +# C: (0, -10, -3) +# D: (0, -12, -3)