here a image of one way to defind a function using def on how to write it.