Hey, today I will leave you a pretty interesting code in which you use functions. I will upload a post in which I tell you how to use functions a little bit later, but meanwhile here is an example of how you could use functions in a code.
Have fun with it!