func i n python code example
Example 1: create function in python
def myFunction():
print('I am running in a function!')
Example 2: functions in python
#Functions
#Functions are followed by the 'def' keyword
#Name your function
def myfunc():
a = 'This is a func'
#Calling the function
myfunc()
print(myfunc())