Now that we’ve got our finished program take a look at your code
How many functions have you used? How readable is your code? How good are the variables names you've used? If you were to come back to your code in three/six/twelve months, how easy would it be to understand? With this in mind, your code to split it into a suitable amount of functions, ensure you’re using good variables names and - more generally - make it so it’s easy to understand for future you.