Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
python 165813219816514981616098813219 (1).pptx
1. PRESENTATION TOPIC :- FUNCTION
SUBMITTED BY :- NURUL HODA ANSARI
MUR :- 2301578
COURSE :- MCA 2ND SEM.
SUBJECT ;- PYTHON PROGRAMMING
SUBMITTED TO :- MR AJAY DHABARIYA
2. WHAT IS FUNCTION?
A function is a block of code which only runs when it is called.
You can pass data, known as parameters, into a function.
A function can return data as a result.
In Python a function is defined using the def keyword:
4. Types of Functions in Python
• Built-in library function: These are Standard functions in Python
that are available to use.
• User-defined function: We can create our own functions based on
our requirements.
Creating a Function in Python
We can define a function in Python, using the def keyword. We can
add any type of functionalities and properties to it as we require.
def fun():
print("Welcome to Dubai")
5. Calling a Python Function:-
After creating a function in Python we can call it
by using the name of the function followed by
parenthesis containing parameters of that
particular function.
def fun():
print("Welcome to Dubai")
# Driver code to call a function
fun()