Professional Documents
Culture Documents
12
1. What is a module?
Ans:
A python module can be defined as a python program file which contains a
python code including python function, class or variables.
def clgname(str):
print("Name of College is ",str)
Main program
Output:
>>> %Run exp12_1.py
def arcircle(r):
def circircle(r):
arcircle(r)
circircle(r)
Output:
>>> %Run exp12_2.py
print(calendar.month(y,m))
Output:
>>> %Run exp12_3.py
Enter Month: 6
June 2021
Mo Tu We Th Fr Sa Su
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Practical No. 12
# Syntax
print(calendar.calendar(y,2,1,6,4))
Output: