Types of function:
Functions can be classified into two categories:
i) user defined function
ii) Built in function
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.
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.
Related Topics
Privacy Policy, Terms and Conditions, DMCA Policy and Compliant
Copyright © 2018-2023 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.