what is function :
a function is a block of code which only runs when is called.
you can pass data , known as parameters , into function .
a function can return data as result.
creating a fuction
in python a fuction is defined using the def keyword :
EXAMPLE:
Arguments
information can be passed into function as arguments
EXAMPLE:
No comments:
Post a Comment