Q. What all information does a function header give you about the function?


Answer =

• def means a function definition is starting.
• Identifier following 'def' is the of the function I.e., here the function name is <Function name>.
• The variables/identifier inside the parentheses are the arguments or parameters.
• There is a colon at the end of def line, meaning it requires a block.

def <Function name> ([parameters]) :

5 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post