You are on page 1of 2

Name-SANGRAM S SUPALKAR

TYCO-B Roll_no-84

EXPERIMENT-12
Q.1 User Defined Module

mod_college.py

def college_name():

s = input("Enter College Name : ")

print("Your College Name is", s)

college name.py

import mod_college

mod_college.college_name()

Output

Enter College Name : SDPC

Your College Name is SDPC

Q.2 Area and Circumference

from math import pi as p

r = int(input("Enter Circle Radius : "))

area = p * r * r

circum = 2 * p * r

print("Area of Circle =", format(area, ".2F"))

print("Circumference =", format(circum, ".2F"))

Output

Enter Circle Radius : 5

Area of Circle = 78.54

Circumference = 31.42
Name-SANGRAM S SUPALKAR
TYCO-B Roll_no-84

Q.3 Calender

import calendar

import datetime

m = int(input("Enter a month number : "))

print(calendar.month(datetime.datetime.now().year, m))

Output

You might also like