python model2(set2)
python model2(set2)
NO
TIME: 3Hr
GE3151-PROBLEM SOLVING & PYTHON PROGRAMMING
PART A (10*2=20marks)
OR
14 a)Demonstrate with python code the various operations that can be performed on tuples?
OR
b)Define dictionary in python do the following operations on dictionaries
i)Initialize two dictionaries with key and value pairs.
ii)merge two dictionaries and create a new dictionary using a single expression
iii)find keys that are in first and not in second dictionary
iv)find same keys in two dictionaries
15 a)Explain about the file reading and writing operations using format operator with python
code?
OR
b)Write a python program to dump objects to a file using pickle?
PART C(1*15=15marks)
16 a)Explain in detail about tuple opearions?
OR
b)Explain in detail about Decision making statements?