Bachelor of Computer Applications (BCA)
Python Programming
Lab: Workbook
Yashwantrao Chavan Maharashtra Open University
Dnyangangotri, Near Gangapur Dam, Nashik 422 222
Practical Activities
No.
1 a. Write a python program to convert Celsius to Fahrenheit.
b. Write a python program to calculate simple Interest and compound
Interest.
c. Write a python program for Sum of squares of first n natural numbers.
2 a. Write a python program to demonstrate use of recursive function.
b. Write a python program to check Armstrong Number using function.
3 a. Python Program to generate a random number using random module.
b. Write a python program to make use of following functions of math
module: exp(), floor(), ceil(), factorial(), sqrt(), pow(), cos().
4 a. Python program to demonstrate string functions.
b. Python program to remove punctuation from string.
5 Write a python program to accept 20 elements from user for arrays and print
the sum of all odd numbers.
6 Python Program to accept n elements from user for arrays and arrange the
elements in ascending order.
7 Python Program to demonstrates operations on dictionary
8 Python Program to demonstrates operations on List
9 Python Program to demonstrates operations on Tuples
10 Python Program to Check whether a string starts and ends with the same
character or not, using regex.
11 Python Program to merge two files into a third file.
12 a. Write a Python GUI program to create a textbox and two buttons exit
and hello using tkinter module. Display message on the click of hello
button.
b. Write a Python GUI program to create a Listbox bar widgets using
tkinter module.
13 a. Wite a python program for connecting SQLite database and perform
insert and delete operation.
b. Write a python program to import CSV file in SQLite database.
14 Write a python program using matplolib to create Line chart and Bar graph.
15 Write a python program using matplolib to create Histogram.