Important Notice:

Course Content
The Calendar Module
Library Function/Predefined Functions
0/4
Sys Module
Library Function/Predefined Functions
0/2
OS Module
Library Function/Predefined Functions
0/2
Functions in Python (Chapter-10) M3-R5
About Lesson

 Function:-

            Function एक प्रोग्राम होता है जो किसी निश्चित कार्य को करता है Python Function ये statements का एक समूह होता है हर एक Program में एक function तो होता ही है  जहाँ पर Function की statements की जरुरत होती है वहाँ पर Function को call किया जाता है

“Function is a block of code which only runs when it is called”.

 

Advantages of function:-

  • Function में लिखा हुआ code बार-बार लिखना नहीं पड़ता

  • बड़े Program को छोटे-छोटे function में विभाजित किया जा सकता है

  • Function Programmer का समय, Program की space और memory बचाता है

  • अगर Program में कहा पर error आ जाए तो उसे आसानी से निकाला जा सकता है

  • जहाँ पर जरुरत हो वहाँ पर function को बार-बार call किया जा सकता है

 

Function:-

            A function is a program that performs a specific task. Python function is a group of statements. Every program has a function. Wherever the statements of the function are needed, the function is called.

“Function is a block of code which only runs when it is called”.

Advantages of function:-

• The code written in the function does not have to be written again and again

• Large programs can be divided into small functions

• Function saves the programmer’s time, program’s space and memory

• If an error occurs in the program, it can be easily removed

• The function can be called again and again where needed

error: Content is protected !!