Question: what are the two main types of functions in python?
Answer: There are two basic types of functions: built-in functions and user defined functions. The built-in functions are part of the Python language; for instance dir() , len() , or abs() . The user defined functions are functions created with the def keyword.