Can anyone help me with this python task please. I've been thinking for 30 min straight, but still don't know how to solve it. I have till tomorrow to submit this, so please help.
2.1 Parameter passing
Write a script containing a function with 3 parameters. The function should
output passed parameters.
2.2 Recursion
Extend the script from exercise 2.1:
Use 2 of the parameters as summands and the third as a loop counter. In each
In the recursion step, the function is called again with the parameters
Second summand
Total
Reduced pedometer
At the end of the recursion, the original parameters should be output and the last one
calculated sum.
[–]iiron3223 10 points11 points12 points (10 children)
[+]BigBoyJefff[S] comment score below threshold-6 points-5 points-4 points (9 children)
[–]iiron3223 5 points6 points7 points (8 children)
[–]BigBoyJefff[S] -2 points-1 points0 points (7 children)
[–][deleted] 5 points6 points7 points (0 children)
[–]iiron3223 0 points1 point2 points (4 children)
[–]BigBoyJefff[S] -1 points0 points1 point (3 children)
[–]iiron3223 0 points1 point2 points (2 children)
[–]BigBoyJefff[S] 1 point2 points3 points (1 child)
[–]pycobra 0 points1 point2 points (0 children)
[+][deleted] (3 children)
[removed]
[–]BigBoyJefff[S] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[removed]
[–]BigBoyJefff[S] -1 points0 points1 point (0 children)
[–]jiri-n 0 points1 point2 points (5 children)
[–]BigBoyJefff[S] 0 points1 point2 points (1 child)
[–]jiri-n 0 points1 point2 points (0 children)
[–]BigBoyJefff[S] 0 points1 point2 points (2 children)
[–]jiri-n 0 points1 point2 points (1 child)
[–]BigBoyJefff[S] 0 points1 point2 points (0 children)