1def example(): #This defines it
2 print("Example.") #This is the defined commands
3
4example() #And this is the commands being run
1def add(number):
2 equation = 5 + number
3 print(equation)
4
5
6add(10)
7
8output:
9
10 15
11
1def greet(name):
2 """
3 This function greets to
4 the person passed in as
5 a parameter
6 """
7 print("Hello, " + name + ". Good morning!")