Lesson Plan - CSE (AI&ML) - B Section
Lesson Plan - CSE (AI&ML) - B Section
Subject Name : PYTHON PROGRAMMING LAB Year &Semester : I-II Branch : CSE(AI&ML) Section : B
Name of the Faculty : Mr. J. Ranjith Academic Year: 2023-2024
Teaching
Mode Total No. of Date
Week
Topic of Syllabus to be covered Learning Outcomes (BB/PPT/ Hours (As per
No. Video) (Cumulative) Timetable )
WEEK 1
Introduction Understand how install and BB 3 16/02/24
I
run the python interpreter
i) Use a web browser to go to the Python website Understand how install and BB 3 16/02/24
run the python interpreter
http://python.org. This page contains information about
I
Python and links to Python-relatedpages, and it gives you
the ability to search the Python documentation.
ii) Start the Python interpreter and type help() to start the Understand help ()uses BB 3 16/02/24
I online help
utility
2. Start a Python interpreter and use it as a Calculator. Apply the application specific BB 3 16/02/24
I
codes using python
3. i) Write a program to calculate compound interest when Apply the application specific BB 3 23/02/24
I codes using python
principal, rate and number of periods are given
ii) Given coordinates (x1, y1), (x2, y2) find the distance Apply the application specific BB 3 23/02/24
I codes using python
between two points
4. Read name, address, email and phone number of a person Understand datatypes BB 3 23/02/24
I
through keyboard and print the details.
II WEEK 2 23/02/24
1. Print the below triangle using for loop. Understand loops concepts BB 3 23/02/24
5
44
II
333
2222
11111
2. Write a program to check whether the given input is digit Understand control structutes BB 3 23/02/24
i) Write a program to convert a list and tuple into arrays. Understand list and tuple in BB 3 01/03/24
I
python
ii) Write a program to find common values between two Understand array concept BB 3 01/03/24
II
arrays
II 2. Write a function called gcd that takes parameters a and b Apply the python codes 3 01/03/24
and returns their greatest common divisor
3. Write a function called palindrome that takes a string Understand function BB 3 8/03/24
argument andreturns True if it is a palindrome and False
III
otherwise. Remember that you can use the built-in function
len to check the length of a string.
WEEK4
1. Write a function called is_sorted that takes a list as a Understand sorting concept BB 3 8/03/24
and code in python
IV parameter andreturns True if the list is sorted in ascending
order and False otherwise.
2. Write a function called has_duplicates that takes a list and Understand function BB 3 8/03/24
IV and returns anew list with only the unique elements from the
original. Hint: they don’thave to be in the same order.
ii). The wordlist I provided, words.txt, doesn’t contain single Evaluate the programs using BB 3 8/03/24
modular approach files i/o
IV letter words.So you might want to add “I”, “a”, and the
empty string.
iii). Write a python code to read dictionary values from the Understand dictionaries in BB 3 15/03/24
python
IV user. Construct afunction to invert its content. i.e., keys
should be values and values shouldbe keys.
IV 3.i) Add a comma between the characters. If the given Create file concept code BB 3 15/03/24
word is”Apple”;, itshould become “A,p,p,l,e;
IV ii) Remove the given word in all the places in a string? Understand string concept BB 3 15/03/24
iii) Write a function that takes a sentence as an input Understand functions concept BB 3 15/03/24
parameter and replaces
the first letter of every word with the corresponding upper
IV
case letter and therest of the letters in the word by
corresponding letters in lower case withoutusing a built-in
function?
4. Writes a recursive function that generates all binary Understand functions concept BB 3 22/03/24
IV
strings of n-bit length.
V WEEK5 22/03/24
i) Write a python program that defines a matrix and print Apply and develop the matrix BB 3 22/03/24
V
code
ii) Write a python program to perform addition of two Apply and develop the matrix BB 3 22/03/24
V code
square matrices
iii) Write a python program to perform multiplication of two Apply and develop the matrix BB 3 22/03/24
V code
square matrices
2. How do you make a module? Give an example of Understand module BB 3 22/03/24