Basaveshwar Engineering College, Bagalkote
Department of Electrical and Electronics Engineering
Subject : Introduction to Python Programming Subject Code :
Faculty Name : Mr. Mahantesh Chikkadesai Semester : 3
Module-2
1. Explain negative indexing, slicing, index(), append(), insert(),remove(), pop(), and
sort() with suitable example.
2. Explain the use of in and not in operators in list with suitable examples.
3. Develop a program to find mean, variance and standard deviation.
4. Explain the following methods in lists with an examples:
i) len() ii ) sum() iii) max() iv) min().
5. Explain set() and setdefault() method in a dictionary.
6. Explain with a programming example to each: (ii) get() (iii) setdefault()
7. Develop suitable Python programs with nested lists to explain [Link]( ) and
[Link]( ) methods.
8. Explain append() and index() functions with respect to lists in Python.
9. Explain different ways to delete an element from a list with suitable Python syntax and
programming examples
10. Tuples are immutable. Explain with Python programming example
11. What are lists in Python and how they used to store and manipulate collections of
data?
12. Differentiate between lists and dictionary.
13. Write a program to add elements into dictionary using while loop.