I am hoping to get some insights on how to work with a function on Python. I had a working version of the script that is not great so I tried defining this function that I w