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. 3. Where is function defined?
A. Module
B. Class
C. Another function
D. None of the mentioned
Answer:A
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. 3. Where is function defined?
A. Module B. Class C. Another function D. None of the mentioned
Explanation: Functions can be defined inside a module, a class or another function. 4. What is called when a function is defined inside a class?