Sign up now
to enroll in courses, follow best educators, interact with the community and track your progress.
Introduction to Functions (in Hindi)
120 plays

In this lesson I am going to teach about functions and modules.

Jitendra jangir from CSE branch ,having more than 4 years teaching experience ,my courses will help you to understand different programming languages

Unacademy user
5:36 galat hai shayad as negative lenge dono Ko positive nahi
what this means ch==' '
Jitendra jangir
10 months ago
plss write complete statements here so i can explain to u ..or tell me ..u r talking about which lessons....
Jitendra jangir
10 months ago
and this condition we use to check for blank space.
Saudarsh Pal
9 months ago
that's what I want to know, thanks
  1. A function is a named sequence of statement(s) that performs a computation. It contains line of code(s) that are executed sequentially from top to bottom by Python interpreter They are the most important building blocks for any software in Python

  2. Functions can be categorized as belonging i. Modules ii. Built in iii. User Defined

  3. Module A module is a file containing Python definitions (i.e. functions) and statements Standard library of Python is extended as module(s) to a programmer. Definitions from the module can be used within the code of a program. To use these modules in the program, a programmer needs to import the module

  4. There are many ways to import a module in your program, the one s which you should know are i. import ii, from

  5. Import It is simplest and most common way to use modules in our code. Its syntax is import modulename1 [.modulename2, Example >>>import math

  6. Import On execution of this statement, Python will (i) search for the file "math. py". (ii) Create space where modules definition & variable will be created, o (iii) then execute the statements in the module

  7. Import To use/ access/invoke a function, you will specify the module name and name of the function- separated by dot (). This format is also known as dot notation Example >>> value-math.sqrt (25) # dot notation

  8. From Statement It is used to get a specific function in the code instead of the complete module file. >>> from modulename import functionname functionname Example >>> from math import sqrt value = sqrt (25)

  9. ThankS!