Department of Artificial Intelligence and Machine Learning
Sem :I Date of Announcement: 12/11/25
Subject : Python Programming Last Date for Submission:17/11/25
Sub code : 1BPCL105
Name of the faculty: Mrs. Sampoorna Bhimshetty
ASSIGNMENT -1
1. Explain data types and type conversion in Python. Explain input () and
print () functions with examples.
2. Discuss conditional statements (if, if-else, if-elif ladder) with examples.
3. Explain looping statements (for, while) with syntax and examples.
4. Write a Python program for multiplication table.
5. Write a Python program for Collatz 3n + 1 sequence.
ASSIGNMENT- 2:
1. Explain different ways to delete an element from a list with suitable Python
syntax and programming examples.
2. Tuples are immutable. Explain with Python programming example.
3. Write a Python program to find mean, variance, and standard deviation for a
list of numbers.
4. Write a Python program to count frequency of digits in a number. And print
slicing for below example Ex: For a=[‘hello’, ‘how’, [1,2,3], [[10,20,30]]] what
is the output of following statement (i) print( a[ : : ] ) (ii) print(a[-3][0]) (iii)
print(a[2][ : -1])(iv) print(a[0][ : : -1])
5. What is a String? Explain below methods. Len(),find(),split(),membership
function.
Faculty In-Charge HOD