Allenhouse Institute of Technology (AKTU Code : 505)
Rooma, Kanpur – 208 008
Assignment - I
Course Title: Python Programming Course Code: BCC-302
Program: B. Tech. CSE & AIML Date of Assignment: 31/10/2023
Semester/Year: 3rd/Second Date of Submission: 3/11/2023
Q. No. Questions CO KL
Write short notes on python Data Types. List all Data types
1 CO-1 K1
used in Python Programming.
2 Write down applications of Python Programming? CO-1 K1
What do you understand by Type Casting? Explain with help
3 CO-1 K2
of examples.
Write a program to find area of a circle. (Take radius as input
4 CO-1 K3
from user)
Write a Program to calculate compound interest.
A = P(1 + R/100)t
Compound Interest = A – P
Where,
5 CO-1 K4
A is amount
P is principle amount
R is the rate and
T is the time span
Assignment - II
Allenhouse Institute of Technology (AKTU Code : 505)
Rooma, Kanpur – 208 008
Course Title: Python Programming Course Code: BCC-302
Program: B. Tech. CSE & AIML Date of Assignment: 28/11/2023
Semester/Year: 3rd/Second Date of Submission: 1/12/2023
Q. No. Questions CO KL
What do you understand by “decision making statements” in
1 2 KL2
python? Explain with help of examples.
How to apply range() function with for loop? Explain with
2 2 KL3
help of example.
3 What id significance of “pass” statement in python? 2 KL2
Python Program to check whether a given string is
4 2 KL4
palindrome or not.
WAP to print given pattern- (Let input is – 5)
1
2 2
5 2 KL4
3 3 33
4 4 4 4 4
5 5 5 5 5 5
Assignment - III
Allenhouse Institute of Technology (AKTU Code : 505)
Rooma, Kanpur – 208 008
Course Title: Python Programming Course Code: BCC-302
Program: B. Tech. CSE & AIML Date of Assignment: 09/01/2024
Semester/Year: 3rd/Second Date of Submission: 12/01/2024
Q. No. Questions CO KL
1 Differentiate between List and Tuple. 3 KL2
What is String in Python? List any 5 methods (functions)
2 3 KL2
of String with example.
Write a program that takes your full name as input and
displays the abbreviations of the first and middle names
3 except the last name which is displayed as it is. For 3 KL4
example, if your name is Robert Brett Roser, then the
output should be R.B.Roser.
Write a Python function that accepts a string and counts
the number of upper and lower case letters.
Sample Input : 'The quick Brow Fox'
4 3 KL4
Expected Output :
No. of Upper case characters : 3
No. of Lower case Characters : 12
Write a Python program to compute the element-wise
sum of given tuples.
Original lists:
5 (1, 2, 3, 4) 3 KL4
(3, 5, 2, 1)
(2, 2, 3, 1)
Element-wise sum of the said tuples:
(6, 9, 8, 6)
Assignment - IV
Course Title: Python Programming Course Code: BCC-302
Allenhouse Institute of Technology (AKTU Code : 505)
Rooma, Kanpur – 208 008
Program: B. Tech. CSE & AIML Date of Assignment: 09/02/2024
Semester/Year: 3rd/Second Date of Submission: 14/02/2024
Q. No. Questions CO KL
Explain all functions to read a text file in python, with help of
1 4 KL2
program.
How can we manipulate file pointer to access different
2 4 KL4
position of a text file? Explain with help of example.
Open the "Demo.txt" file in append mode and add the
3 4 KL3
following lines to it
Assignment - V
Allenhouse Institute of Technology (AKTU Code : 505)
Rooma, Kanpur – 208 008
Course Title: Python Programming Course Code: BCC-302
Program: B. Tech. CSE & AIML Date of Assignment: 09/02/2024
Semester/Year: 3rd/Second Date of Submission: 14/02/2024
Q. No. Questions CO KL
What do you understand by python package? Explain with
1 5 KL2
help of example.
What is numpy? Write a program using numpy array to add
2 5 KL4
elements of 2 array row-wise and column-wise.
What are different type of graphs used for data visualization
3 5 KL3
using Matplotlib? Explain with example.