DEPARTMENT OF COMPUTER ENGINEERING
ACADEMIC SESSION 2023-24 (EVEN)
PYHTON LAB PLAN-6CS4-23
S.No. List of Experiments
Topic to be covered: Installations, Indentations, Comments, Variables,
Data Types, Casting, User inputs
Exercise Based on above Topics:
1. Introduction of Python and installation of anaconda Jupyter by students.
1 2. Write a program to demonstrate basic data type in python.
3. Write a program to compute distance between two points taking input from
the user
4. Write a program add.py that takes 2 numbers as input from user and prints
its sum.
Topics to be covered : Operators, If-else, Loops(For, While Loop)
Exercise based on above Topics:
1. Write a Python program to print maximum out of 3 numbers.
2. Write a Python program to compute the compound interest & simple interest
3. Write a Python program to check given number is even or not.
2
4. Using a for loop, write a program that prints out the decimal equivalents of
½, 1/3, 1/4… 1/10
5. Write a program using a for loop that loops over a sequence.
6. Write a program using while loop that asks the user for a number, and prints
a countdown from that number to zero.
Topics to be covered: List, Tuples
Exercise based on above Topics:
1. Write a program to demonstrate list in python
2. Write a program to demonstrate tuples in python
3 3. Write a program to check number is Armstrong or not
4. Write a program to check number is palindrome or not
5. Write a program to check number is prime or not
Topics to be covered: Set, Dictionaries
Exercise based on above Topics:
4
1. Write a program to demonstrate Set in python
2. Write a program to demonstrate Dictionaries in python
Topics to be covered: Strings, Array, File Handling
Exercise based on above Topics:
1. Write a program to count the numbers of characters in the string and
storethem in a dictionary data structure
5 2. Write a program to use split and join methods in the string and trace a
birthday of a person with a dictionary data structure
3. Write a program to count frequency of characters in a given file. Can you
use character frequency to tell whether the given file is a Python
program file, C program file or a text file?
4. Write a program to print each line of a file in reverse order.
5. Write a program to compute the number of characters, words and lines
in afile.
6. Write a function nearly equal to test whether two strings are nearly
equal.Two strings a and b are nearly equal when a can be generated by
a singlemutation on.
7. Write a program to implement Insertion sort.
8. Write a program to implement Selection sort
Topics to be covered : Functions, Classes, Objects
6 Exercise based on above Topics:
1. Write a Python function to find the Max of three numbers.
2. Write a Python program to reverse a string.
3. Write a Python function to calculate the factorial of a number (a non-
negative integer).The function accepts the number as an argument.
4. Write a Python class to reverse a string word by word.
5. Write a Python class named Rectangle constructed by a length and width
and a method which will compute the area of a rectangle.
After I Mid Term Experiment Number 7 to 10 to be execute
Topics to be covered : Introduction of Flask, Environment, Application,
7 Routing
Exercise based on above Topics:
1.Write a program to print “ hello World”
Topics to be covered : Flask Routing, URL Building, HTTP Methods
8 Exercise based on above Topics:
Demonstration through examples
Topics to be covered : Templates, static Files, Request objects,
9 Sending Form Data to Templates
Exercise based on above Topics:
Demonstration through examples
Topics to be covered : Database Connectivity(SQLite)
10 Exercise based on above Topics:
Application of Students Information form
(Database Connectivity ,SQL Query : Create , Insert , Select )
Mid Term second would be application based