how to create a function in py code example Example: create function in python def myFunction(): print('I am running in a function!')