Page 99 - IPP-11
P. 99
CHAPTER: DICTIONARY
1. Pure Basket is a department store with a wide range of merchandise including groceries, fruits,
vegetables and household accessories. It aims to develop a complete software for Billing, Inventory and
Accounts management and to provide consumers a user-friendly interface to view item codes and prices
of various items.
Write a program in Python that repeatedly asks the user to enter product names and prices. Store all of
them in a dictionary whose keys are product names and values are prices. Also write a code to search
an item from the dictionary.
Ans.
2. With respect to “Magnetic Demographic Projections” (Ch-5), the phone numbers of the customers are to Case-based/Source-based Integrated Questions
be stored in the form of a dictionary. Write a Python program to input ‘n’ names and phone numbers to
store them in a dictionary and to input any name and to print phone number of that particular customer.
Ans.
C.5