6. Python_Final (3)
6. Python_Final (3)
CO3. Perform the different operations on data structure like list, set, tuple and dictionary.
List: Basic concept, creating and accessing elements, list operations, list comprehension, list
slices, list methods, list loop, mutability, aliasing, cloning lists, list parameters.
Set: Basics of sets, create a set, add and remove set, common set operations, working with
sets.
Tuple: Basic concepts, creating and accessing a tuple, tuples operations, lists vs. tuples,
iterating through a tuple, slicing with negative index numbers, tuple assignment, tuple as
return value.
Dictionary: Basic concept, creating dictionary, accessing dictionary items, updating
dictionary, deleting elements from dictionary, operations in dictionary, built-in dictionary
functions.
Unit IV: Python for String and File Handling 4
Strings: A string is a sequence, len, string slices, searching, looping, counting, string methods
File Handling: File open, read, right, update, delete
List of Practical:
Sr. Name of Experiment Co Mapping
No.
1 Write a program by using basic concepts like input, output, variable,
CO1
keywords, and identifiers.
2 Write a program to demonstrate the of arithmetic operators. CO1
3 Write a program to demonstrate working of control structures. CO2
4 Write a program to demonstrate working of different types of functions. CO2
5
Write a program to demonstrate working of recursion. CO2
6 Write a program to perform different operations on list:
i. Append
ii. Extend
iii. Insert CO3
iv. Remove
v. Pop
vi. Slice
7 Write a program to perform different operations on set:
i. Update
ii. Remove the element CO3
iii. Clear
iv. pop
8 Write a program to perform different operations on tuple:
i. Accessing
ii. Concatenation CO3
iii. Slicing
iv. Deleting
9 Write a program to demonstrate the working of dictionary CO3
10 Write a program demonstrates various operations on strings:
i. Slicing
ii. Concatenating
iii. Finding the length of the string CO4
iv. Converting the string to uppercase and lowercase
v. Replacing a substring with another substring
vi. Splitting the string into a list of substrings
11 Write a program to demonstrate different operations on file:
i. Create
ii. Open
iii. Read CO4
iv. Write
v. Update
vi. Delete
12 CO1, CO2,
Mini Project
CO3, CO4
Content beyond syllabus
1 Write a Python program to create datagram using Numpy and Pandas library
2 Write a Python program to import existing dataset and perform different operations on it
using Numpy and Pandas library
3 Write a Python program to plot the different types of graph using Matplotlib library