Type hints here are pretty strict here. Keep in mind that in the real world, such functions will probably be more generic. Of course, we can create more sophisticated things like map, reduce, filter functions, and beloved closures, but we won't cover them today. Here's another example: