We can use both while and for loops inside functions, like this for loop that displays the progress of a download.

Make sure to type for.