0% found this document useful (0 votes)
6 views5 pages

Python Programming CDP R23

The document outlines a course delivery plan for a Python Programming Lab, detailing course objectives, outcomes, and a list of experiments to be conducted. It includes specific programming tasks aimed at developing skills in Python, such as working with data structures, functions, and file handling. Additionally, it provides a mapping of course outcomes to program outcomes and includes a link to a virtual lab for further exploration.

Uploaded by

ramarao
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views5 pages

Python Programming CDP R23

The document outlines a course delivery plan for a Python Programming Lab, detailing course objectives, outcomes, and a list of experiments to be conducted. It includes specific programming tasks aimed at developing skills in Python, such as working with data structures, functions, and file handling. Additionally, it provides a mapping of course outcomes to program outcomes and includes a link to a virtual lab for further exploration.

Uploaded by

ramarao
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

COURSE DELIVERY PLAN –LABORATORY

DEPARTMENT OF COMPUTER SCIENCE ENGINEERING T :0


PROGRAM (UG/PG) :CSE P :3
Course Code : 1005232180 C : 1.5
Course Name : Python Programming Lab Date :08/06/2025
Regulation : VR23 Rev No : 01
Class Module Coordinator Section Name of the Faculty
[Link] CSE-A [Link]

Course Coordinator CSE-B,C [Link] Rupa


II [Link]
I Sem [Link] [Link]
CSE-D

CSE-E/CSC [Link]

COURSE OBJECTIVES:

 Introduce core programming concepts of Python programming language.


 Demonstrate about Python data structures like Lists, Tuples, Sets and dictionaries
 Implement Functions, Modules and Regular Expressions in Python Programming and to
create practical and contemporary applications using these
 Implement Dictionary keys in python convert this dictionary as a pandas data frame

Course Outcomes (COs):

CO1: Develop Python programs using functions, default arguments, and control structures to
solve computational problems effectively. (K3)
CO2: Implement Python programs to perform operations on dictionaries, lists, tuples, and
strings using built-in methods and functions. (K3)
CO3: Analyze Python functions utilizing multiple return values and modular programming
techniques for problem solving. (K4)
CO4: Write Python programs to process and validate JSON data, files, and complex data
structures using appropriate libraries. (K3)
CO5: Develop Python-based applications integrating data structures, file handling, and
standard libraries to address real-world computing problems. (K3)
LIST OF EXPERIMENTS:

1. Write a program to find the largest element among three Numbers.

2. Write a Program to display all prime numbers within an interval

3. Write a program to swap two numbers without using a temporary variable.

4. Demonstrate the following Operators in Python with suitable examples.

i) Arithmetic Operators ii) Relational Operators iii) Assignment Operators

iv) Logical Operators v) Bit wise Operators vi) Ternary Operator vii) Membership
Operators viii) Identity Operators

5. Write a program to add and multiply complex numbers

6. Write a program to print multiplication table of a given number.

7. Write a program to define a function with multiple return values.

8. Write a program to define a function using default arguments.

9. Write a program to find the length of the string without using any library functions.

[Link] a program to check if the substring is present in a given string or not.

[Link] a program to perform the given operations on a list:


[Link] ii. Insertion iii. slicing
[Link] a program to perform any 5 built-in functions by taking any list.

[Link] a program to create tuples (name, age, address, college) for at least two members and
concatenate the tuples and print the concatenated tuples.

[Link] a program to count the number of vowels in a string (No control flow allowed).

[Link] a program to check if a given key exists in a dictionary or not.

[Link] a program to add a new key-value pair to an existing dictionary.

17. Write a program to sum all the items in a given dictionary.

18. Write a program to sort words in a file and put them in another file. The output file
should have only lower-case words, so any upper-case words from source must be lowered.

[Link] program to print each line of a file in reverse order.

[Link] program to compute the number of characters, words and lines in a file.
[Link] a program to create, display, append, insert and reverse the order of the items in the
array.

[Link] a program to add, transpose and multiply two matrices.

[Link] a Python program to create a class that represents a shape. Include methods to
calculate its area and perimeter. Implement subclasses for different shapes like circle, triangle,
and square.

[Link] program to check whether a JSON string contains complex object or not.

[Link] Program to demonstrate NumPy arrays creation using array () function.

[Link] program to demonstrate use of ndim, shape, size, dtype.

[Link] program to demonstrate basic slicing, integer and Boolean indexing.

[Link] program to find min, max, sum, cumulative sum of array

VIRTUAL LAB EXPERIMENTS

[Link] a dictionary with at least five keys and each key represent value as a list where this
list contains at least ten values and convert this dictionary as a pandas data frame and explore
the data through the data frame as follows:
a) Apply head () function to the pandas data frame
b) Perform various data selection operations on Data Frame
[Link] any two columns from the above data frame, and observe the change in one attribute
with respect to other attribute with scatter and plot operations in matplotlib

Teaching
[Link] Topics to be covered Reference
aids
Write a program to find the largest element among
1 Lab manual page 5-6 PPT
three Numbers..
Write a Program to display all prime numbers within BB
2 Lab manual page 6-7
an interval
Write a program to swap two numbers without using a BB
3 temporary variable. Lab manual page 7
Demonstrate the following Operators in Python with PPT
suitable examples. i) Arithmetic Operators ii)
Relational Operators iii) Assignment Operators
4 Lab manual page 7-9
iv) Logical Operators v) Bit wise Operators vi)
Ternary Operator vii) Membership Operators viii)
Identity Operators
PPT
Write a program to add and multiply complex
5 Lab manual page 6-7
numbers.
Write a program to print multiplication table of a BB
6 Lab manual page 10
given number.
Write a program to define a function with multiple PPT
7 Lab manual page 10-11
return values.
8 Write a program to define a function using default arg Lab manual page 11 BB
Write a program to find the length of the string BB
9 Lab manual page 11
without using any library functions.
Write a program to check if the substring is present in BB
10
a given string or not. Lab manual page 11-12
Write a program to perform the given operations on a PPT
11 Lab manual page 12-13
list: [Link] ii. Insertion iii. slicing
Write a program to perform any 5 built-in functions by PPT
12 Lab manual page 13-14
taking any list.
Write a program to create tuples (name, age, address, BB
13 college) for at least two members and concatenate the Lab manual page 14-15
tuples and print the concatenated tuples.
Write a program to count the number of vowels in a BB
14 Lab manual page 15-16
string (No control flow allowed).
Write a program to check if a given key exists in a PPT
15 Lab manual page 16-17
dictionary or not
Write a program to add a new key-value pair to an BB
16 Lab manual page 16-17
existing dictionary.
Write a program to sum all the items in a given PPT
17 Lab manual page 18
dictionary
Write a program to sort words in a file and put them in BB
another file. The output file should have only lower-
18 Lab manual page 19
case words, so any upper-case words from source
must be lowered.
19 Python program to print each line of a file in reverse Lab manual page 20 BB
Python program to compute the number of characters, PPT
20 Lab manual page 21
words and lines in a file.
Write a program to create, display, append, insert and BB
21 Lab manual page 22
reverse the order of the items in the array.
Write a program to add, transpose and multiply two BB
22 Lab manual page 23
matrices.
Write a Python program to create a class that PPT
represents a shape. Include methods to calculate its
23 Lab manual page 24
area and perimeter. Implement subclasses for different
shapes like circle, triangle, and square.
Python program to check whether a JSON string BB
24 Lab manual page 25
contains complex object or not
Python Program to demonstrate NumPy arrays PPT
25 Lab manual page 26
creation using array () function
Python program to demonstrate use of ndim, shape, BB
26 Lab manual page 27
size, dtype
Python program to demonstrate basic slicing, integer PPT
27 Lab manual page 28
and Boolean indexing.
PPT
Python program to find min, max, sum, cumulative
28 Lab manual page 29
sum of array
Create a dictionary with at least five keys and each Link VIRTUA
key represent value as a list where this list contains at L LAB
least ten values and convert this dictionary as a pandas
data frame and explore the data through the data frame
29 as follows:
a) Apply head () function to the pandas data frame
b) Perform various data selection operations on Data
Frame

Select any two columns from the above data frame, Link VIRTUA
and observe the change in one attribute with respect to L LAB
30
other attribute with scatter and plot operations in
matplotlib.

Content beyond syllabus covered (if any):

CO1: Write a program to define a function using default arguments


CO2: Write a program to sum all the items in a given dictionary

* Session duration: 150 min

Mapping COs and POs:

CO PO PSO
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PSO1 PSO2
COs
CO1 3 2 2 - - 2 - - 2 - 2 2 3
CO2 3 3 2 2 3 - - 2 - - 2 3 3
CO3 3 3 2 2 3 2 2 - - - 2 2 3
CO4 3 3 3 2 3 2 - 2 2 2 2 2 3
CO5 3 3 3 3 3 2 2 2 2 2 3 2 3
AVG 3 2.8 2.4 2.25 3 2 2 2 2 2 2.2 2.2 3

Python Virtual Lab Link: [Link]

Prepared by Signature Approved By Signature


MODULE
COORDINATOR
[Link]
HOD-CSE

PRINCIPAL

You might also like