function example python
Example 1: how to define functions in python
def add(number):
equation = 5 + number
print(equation)
add(10)
output:
15
Example 2: python functions
#Functions
def string():
print('This is a function')
print(string())