.
*
->
&
Shape
Array
both a) and b)
None of the above.
Effective Analysis
Proper documentation
Efficient Coding
All of the above
A built-in Python function
A one-line anonymous function
Lambda is a function in python but user can not use it.
None of the above
#
=
/
;
: :
:
%
Semantic errors
Syntax errors
Logical errors
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)
31 characters
63 characters
No limit but 79 characters for better redability
All of the above.
Provide a convenient way of associating documentation with Python modules, functions, classes, and methods.
All functions should have a docstring.
Docstrings can be accessed by the ___doc_attribute on objects.
All of the mentioned.
closed
softspace
rename
function_name()
call function_name()
ret function_name()
function function_name()
Required arguments
Keyword arguments
Default arguments
Variable-length arguments
Boxes
Circles
Arrows
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.
It is used for object serialization
It is used for object deserialization
All of the mentioned
None of the mentioned
d.size()
len(d)
size(d)
d.len ()
all_like
ones_like
one_alike
all of the mentioned
algorithmic
heuristic
random
none of these