how do I make a function in python.

       What is python

Python is a general purpose programming language and it was created by guido van rossum in 1991.

Create a function in python :

what is function : function is a block of code which runs only when it is called. Inside function you can pass a parameter.

Uses : It is used to avoid rewriting the same code again and again.

you can easily create a function in python using def keyword. The def keyword are usually used for creating a python function.

Let’s see an example of it , how can I create a python function and how I can call a function

To call a function , use the function name

To call a function using passing an argument into a function

  



Comments

Popular posts from this blog

proassignment help backlink data index 41

Programming shark backlink data index 67

programming shark backink data index 31