Py Functions Flashcards
1
Q
How to create a function?
A
]] def ( var A, var B ): – fn.header
]] …. – fn.body, what fn. actually does
2
Q
How to create a parameterised function?
A
]] def ( param A, param B, param C ):
3
Q
How can a default value be provided to a parameterised function?
A
]] def ( Param A = ‘def.value’, Param B ):
4
Q
Can a function call return more than one value?
A
yes, it can return a tuple
5
Q
How can a multiple variable reply be assigned multiple variables?
A
by having multiple variables assigned, mapped to the outputs