हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा १२

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×