Functions in Python The basic syntax of a python function is: def function_name(input variables): #do something #return something