Question concerning functions
I'm currently on the functions tutorial, but there's one thing that I just can't understand how to do (which it doesn't explain how, but says that it's possible and a good idea to use). How would I go about making a function to actually repeat a certain block of code a certain amount of times? The only type of functions that the tutorial explains is a function that will accept two arguments, and return an integer. Also note that I'm not asking how to do this for a specific program; I just need to know how I'd go about doing this.
Also, if possible, please write out both in code and explaining it to me so I can look at the structure of the code if I don't understand something.