G.
NARAYANAMMA INSTITUTE OF TECHNOLOGY AND SCIENCE
(AUTONOMOUS) (For Women)
Shaikpet, Hyderabad - 500 104
Department of CSE(AI& ML)&CSE(Data Science)
IV B.Tech I Semester
Academic Year 2024-25
Assignment-2
SUBJECT: Python Programming
SUBJECT CODE: 123AV Max Marks: 5
BRANCH: ECE-A ,B,C&ETM
Blooms Taxonomy Levels:
Level 1 – Remembering, Level 2 – Understanding, Level 3 – Applying, Level 4 – Analyzing,
Level 5 – Evaluating, Level 6 - Creating
Answer all questions.
S.No. Question CO BT
Level
1 a) Explain Strings indexing and slicing with examples. CO3 L2
b) Write a Python program to demonstrate mathematical operations on sets. CO3 L3
2 a) What are the various file opening modes in python? CO4 L1
b) How to create a text file and write content in to the text file? Explain with a CO4 L3
python script.
3 a) Outline the usage of key words to handle Exceptions. CO4 L2
b) Discuss about various types of regular expressions in python. CO5 L2
4 a) How to organize widgets with Frames? CO6 L1
b Explain about Button Widgets and Info Dialog Boxes. CO6 L2
5 a) Explain about various types of plotting data in python? CO6 L2
b) Illustrate line, scatter plot and histogram with suitable code snippet. CO6 L4