12.4 Exercises

i2ds: Exercises

Here are four exercises from 12.4: Exercises of the ds4psy book (Neth, 2021a):

12.4.1 Fibonacci loops

12.4.2 Looping for divisors

12.4.3 Dice loops

12.4.4 Cumulative savings revisited

This concludes our exercises on iteration and loops.