मराठी
तामिळनाडू बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान इयत्ता १२

What are the points to be noted while defining a function? - Computer Science

Advertisements
Advertisements

प्रश्न

What are the points to be noted while defining a function?

टीपा लिहा

उत्तर

  1. Function blocks begin with the keyword “def ” followed by the 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 a return None.
shaalaa.com
Introduction to Python Functions
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 7: Python functions - Evaluation [पृष्ठ ११३]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 12 TN Board
पाठ 7 Python functions
Evaluation | Q 8. | पृष्ठ ११३
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×