What Is Python Module
What Is Python Module
OUTPUT:
random.randint(a, b)
import random
Random number: 5
Random number: 32
Random number: 84
In Python, date and time are not a data type of their own, but a module named
datetime can be imported to work with the date as well as time. Python
Datetime module comes built into Python, so there is no need to install it
externally.
Python Datetime module supplies classes to work with date and time. These
classes provide a number of functions to deal with dates, times and time
intervals. Date and datetime are an object in Python, so when you manipulate
them, you are actually manipulating objects and not string or timestamps.
3. MATH MODULE:
The math module is a standard module in Python and is always available.
To use mathematical functions under this module, you have to import the
module using import math.
Example:
Square root calculation import math math.sqrt(4)
BIBLIOGRAPHY
➢ Google.com
➢ Youtube.com
➢ Sunita arora class 11th ip book
➢ www.wikipedia.com