Python - Types of function | Problem Solving and Python Programming : Data, Expressions, Statements

Chapter: Problem Solving and Python Programming : Data, Expressions, Statements

Types of function

Functions can be classified into two categories: i) user defined function ii) Built in function

Types of function:

 

Functions can be classified into two categories:

i)               user defined function

ii)             Built in function

 

i) Built in functions

 

v   Built in functions are the functions that are already created and stored in python.

 

These built in functions are always available for usage and accessed by a programmer. It cannot be modified.


 

ii)User Defined Functions:

 

v   User defined functions are the functions that programmers create for their requirement and use.

v   These functions can then be combined to form module which can be used in other programs by importing them.

v   Advantages of user defined functions:

·                 Programmers working on large project can divide the workload by making different functions.

·                 If repeated code occurs in a program, function can be used to include those codes and execute when needed by calling that function.

 


Tags : Python , Problem Solving and Python Programming : Data, Expressions, Statements
Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail
Problem Solving and Python Programming : Data, Expressions, Statements : Types of function | Python

Related Topics

Problem Solving and Python Programming : Data, Expressions, Statements


Privacy Policy, Terms and Conditions, DMCA Policy and Compliant

Copyright © 2018-2024 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.