In this video we show how to use for-loops in function definitions. In particular, we show that we go from a specification to code that uses a for-loop.
Integers are not the only number type in Python. There is also the float type, which is the set of real numbers. Floats can do just about everything that integers So why then does Python need a…