0% found this document useful (0 votes)
9 views52 pages

Unit 2 Part 1 Python 3

The document discusses Python functions including defining and calling functions, local and global variables, function arguments, error handling, exceptions, built-in functions, sorting, lambda functions, modules and importing modules.

Uploaded by

zerihunbasazin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views52 pages

Unit 2 Part 1 Python 3

The document discusses Python functions including defining and calling functions, local and global variables, function arguments, error handling, exceptions, built-in functions, sorting, lambda functions, modules and importing modules.

Uploaded by

zerihunbasazin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 52

Functions

Defining and Calling a Function


Pass by Object Reference

[ ‘TVTI’, ’new’ ]
Function - Local and Global Variables
Function - Local and Global Variables (Contd...)
Various Forms of Function Arguments
Various Forms of Function Arguments
Various Forms of Function Arguments (Contd...)
Errors and Exception Handling
Common Exception Errors - I
Common Exception Errors - II
Common Exception Errors - III
Common Exception Errors - IV
try..except..else Clause
try...finally Clause
Ignore Errors
Assert Statement
Standard Exception Hierarchy
Standard Library
Built-in Functions
Sorting
Sorting (Contd...)
Lambda Functions
Sorting - Operator. itemgetter()
Sorting - Operator.itemgetter()
dir()
dir() (Contd...)
Why Modules?
Why Modules? (Contd...)
Modules
Modules (Contd...)
sys Modules
sys Modules (Contd...)
os and subprocess Modules
os Module
os Module (Contd...)
os.path
os.path (Contd...)
Math Module
Math Number-theoretic Functions
Math - Power and Logarithmic Functions
Math - Trigonometric Functions
Math - angular, hyperbolic, constant
Random
Date Time Module
Date Time Module (Contd...)
Date Time Module (Contd...)
Packaging
Ways to Install Module/Package

You might also like