Professional Documents
Culture Documents
Assignment Class 11
Tuples and Dictionaries in Python
Tuples
1. Write a program to find the product of elements of a tuple which have 7 in the
units place.
Dictionaries
1. Define the term Dictionary in Python.
2. How are dictionaries different from lists ?
3. Write any 3 basic characteristics of a dictionary.
4. Give the use of the functions used for a dictionary.
( a ) keys ( )
( b) clear ( )
( c ) get ( )
( d ) items ( )
( e ) update( )
( f ) fromkeys( )
5. Write a program to find the name of the book which has maximum price
out of 5 books in the library.
6. Give difference between pop( ) and popitem( ). Give an example of both
functions.
7. Briefly explain utility of a nested dictionary in Python.