Chapter - 03 Python Libraries
Chapter - 03 Python Libraries
PYTHON LIBRARIES
INTRODUCTION
INTRODUCTION
1. Reusability
2. Clarity
4. Easy to understand
IMPORTING
MODULES
IMPORTING MODULES
Enclosed
.py file
PACKAGE/LIBRARY
t9lo
FOLDER
GEOMETRY
Area.py Volume.p
y
FILES
PACKAGE/LIBRARY
FOLDER IS CREATED
PACKAGE/LIBRARY
pip a package-management
is system to install and
used
software packages
manage
written in Python.
import datetime
v_date=datetime.date.today(
)vyear = v_date.year()
vmonth = v_date.month()
vday = v_date.day()
PYTHON STANDARD LIBRARY
import datetime
v_date=datetime.date.today(
)vnow = v_date.now()
vhour = v_date.hour()
vmin = v_date.minute()
vsec = v_date.second()
CLASS TEST
Class : XII Time: 40 Min
Topic: Python Libraries Max Marks: 40
Each Question carries 5 Marks
1. What are the components of python program.
2.Explain the ways to import a module in
python program.
3. What is namespace? Explain in detail
4.What is python package? Write down the
steps to create a python package and also write
a programs and create a package.
Thank You