0% found this document useful (0 votes)
5 views1 page

Assignment Module 2

The document outlines the syllabus for a Python Programming course at Basaveshwar Engineering College, focusing on various list and dictionary methods, including negative indexing, slicing, and operations like append and pop. It also includes programming tasks such as calculating mean, variance, and standard deviation, as well as examples of using nested lists and the differences between lists and dictionaries. Additionally, it covers the immutability of tuples and provides exercises for manipulating collections of data.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Assignment Module 2

The document outlines the syllabus for a Python Programming course at Basaveshwar Engineering College, focusing on various list and dictionary methods, including negative indexing, slicing, and operations like append and pop. It also includes programming tasks such as calculating mean, variance, and standard deviation, as well as examples of using nested lists and the differences between lists and dictionaries. Additionally, it covers the immutability of tuples and provides exercises for manipulating collections of data.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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.

You might also like