What are the two main types of functions in Python?

Questions & AnswersCategory: Programming LanguageWhat are the two main types of functions in Python?
Geek Boy Staff asked 2 years ago

What are the two main types of functions in Python?
a. System function
b. Custom function
c. Built-in function & User defined function
d. User function

1 Answers
Geek Boy Staff answered 2 years ago

c. Built-in function & User defined function
Explanation: Built-in functions and user defined ones. The built-in functions are part of the Python language. Examples are: dir(), len() or abs(). The user defined functions are functions created with the def keyword.