Computer Science, asked by Achukavya, 11 months ago

syntax for user defined function and built in function​

Answers

Answered by LuckyYadav2578
6

User define function :-

User define or makes (create) a function as per the requirement of programmes.

syntax -

def < function_name > < ( parameters ) > :

          [" " " < docstring > " " "]

          < statement >

           ...

example -

def add (x,y):

          a = x + y

           return a

Built in function :-

Predefined function available in python library.

syntax -

< function_name > <(Character/digit/something else)>

note : Doesn't correct for are the function.

example -

>>> int ( 2578.63 )

2578

another example -

>>> list [range (5,12,2))

[5,7,9,11]

Similar questions