<human>:  How do you write a function in python?
<bot>: A function is a sequence of statements that are executed together. To write a function, you need to define a name for it, and then write the statements that you want to be executed when the function is called. Here is an example of a function that adds two numbers:

def add(a, b):
  return a + b

# Enter the numbers
a = 10
b = 20

# Calling the function
print((add(a, b)))

#Example Output
# 30

#Remember to inspect code for bugs.