KnowledgeBoat Logo
|

Robotics & Artificial Intelligence

Fill in the blanks:

  1. Function can accept inputs called ……………. .
  2. The ……………. arguments allow to specify a default value for a function parameter.
  3. The ……………. statement is used to return a value from a function.
  4. A function can have ……………. parameters, which have default values assigned to them.
  5. In a ……………., a large program is broken down into individual blocks of code that work together to complete a task.
  6. ……………. functions refer to those functions that are already defined in Python and user can use them directly without referring to any module or library.
  7. The ……………. keyword is used to define a user-defined function.
  8. The two parts of a function are ……………. and ……………. .
  9. ……………. are the names given to variables that are given in the parentheses in the function definition.
  10. Multiple values are returned by a function in the form of the ……………. data type.
  11. The function is called ……………. if it does not return any value or has an empty return statement.
  12. The functions that return some value using the return statement after execution are called ……………. functions.

Python Functions

1 Like

Answer

  1. Function can accept inputs called arguments or parameters.
  2. The default arguments allow to specify a default value for a function parameter.
  3. The return statement is used to return a value from a function.
  4. A function can have default parameters, which have default values assigned to them.
  5. In a function, a large program is broken down into individual blocks of code that work together to complete a task.
  6. Built-in functions refer to those functions that are already defined in Python and user can use them directly without referring to any module or library.
  7. The def keyword is used to define a user-defined function.
  8. The two parts of a function are function header and function body.
  9. parameters are the names given to variables that are given in the parentheses in the function definition.
  10. Multiple values are returned by a function in the form of the tuple data type.
  11. The function is called void or non-fruitful function if it does not return any value or has an empty return statement.
  12. The functions that return some value using the return statement after execution are called Non-void or fruitful functions.

Answered By

2 Likes


Related Questions