Functions Worksheet
Functions Worksheet
Functions Worksheet
Assertion (A): Built-in function are predefined in the language that are
used directly.
Reason (R): print() and input() are built-in funcitions
Assertion (A); A variable is still valid if it is not defined inside the function.
The values defined in global scope can be used.
Reasoning (R): Python used LEGB rule to resolve the scope of a variable.
Assertion (A): Global variable is declared outside the all the functions.
Reasoning (R): It is accessible through out all the functions.
Assertion (A):- All the keyword arguments passed must match one of the
arguments accepted by the function
Reasoning (R):- You cannot change the order of appearance of the
keyword.