MENU
Question -

What are the various types of functions available in Python ?



Answer -


Built-in functions are those that are built into Python and can be accessed by a programmer, e.g. raw_input, len(s),
A module is a file containing Python defintions and statements. We need to import modules to use any of its functions or variables in our code.
e.g. import math
value = math.sqrt (64).
User-defined functions are created by the programmer.
e.g. def area (side):
a = side * side
return a

Comment(S)

Show all Coment

Leave a Comment

Free - Previous Years Question Papers
Any questions? Ask us!
×