A function that calls itself
A function that calls other functions
Both (A) and (B)
None of the above
procedure
function
bug
None of these
Lists
Dictionary
String
All of the mentioned
In Module
In Class
In Another function
All of these
A built-in Python function
A one-line anonymous function
Lambda is a function in python but user can not use it.
;
: :
:
%
None
0
Null
Arbitary value
def fun (a = 2, b = 3, c)
def fun(a = 2, b, c = 3)
def fun(a, b = 2, c = 3)
def fun(a, b, c = 3, d)
function_name()
call function_name()
ret function_name()
function function_name()
Required arguments
Keyword arguments
Default arguments
Variable-length arguments
The variables used inside function are called local variables.
The local variables of a particular function can be used inside other functions, but these cannot be used in global space.
The variables used outside function are called global variables.
In order to change the value of global variable inside function, keyword global is used.
int
null
An exception is thrown without the return statement
A function that calls other function.
A function which calls itself.
Both A and B
built-in functions
user-defined functions
py function
find the output of following code:
def add(a,b): return(a+b) print(add(3,4))
4
7
9
8
Repeating a process in a loop
Calling a function from within itself
Using a loop to iterate over elements
Breaking down a problem into smaller subproblems
fun
def
define
Define keyword in python
Define variable in python
Define function in python
All of the above
What will be the output of the following Code?
def sum(x): return x*x print(sum(4))
16
64