Course Content

If you are facing any issue in playing video please use Firefox browser.

Course Content

Description

Python Functions

 

In this lecture we will see that, What is function ?, Which are the types of functions ?, and How to use inbuilt functions ?

 

A function is a block of code that performs a specific task.

 

The two most important reasons that programmers use functions are - The first reason is reuseability. Once a function is defined it can be used over and over and over again. You can also use functions that somebody else has return for you, such as print() and help() function.

 

Types of functions

 

  • In-built function
  • User defined function

 

In-built function

 

A function that is built into all languages and can be accessed by end users. For example, most languages support a built in MAX function that help to find maximum number.

 

Inbuilt function in Python -

print()

input()

round()

min()

max()

floor()

ceil()

help()

dir()

 

Example :

print('hello function')

O/P - hello function

 

Example :

list=[5,6,9,1,2,7]

print(max(list))

O/P - 9

FAQs

Share With Friend

Have a friend to whom you would want to share this course?

Download The Apps

Code Scan or Download the app
Google Play Store
297K+ Downloads
4.5 Rating
10K+ Reviews
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere