Saved Bookmarks
| 1. |
What are the points to be noted while defining a function? |
|
Answer» 1. Function blocks begin with the keyword “def ” followed by function name and parenthesis ( ). 2. Any input parameters or arguments should be placed within these parentheses when you define a function. 3. The code block always comes after a colon (:) and is indented. 4. The statement “return [expression]” exits a function, optionally passing back an expression to the caller. A “return” with no arguments is the same as return None |
|