Customer Details - Python Problem Solution
Customer Details
Python Problem Solution
Photo by Lisa Fotios from Pexels |
Given below is a dictionary customer details representing customer details from retail application - Customer id is key and Customer Name is value.
Customer_details={1001:"John",1004:"Jill",1003:"Jack"}
Write a Python code to perform below mentioned operations:
a. Print details of Customers
b. Print number of customers
c. Print Customer names in ascending order
d. Update the name of customer with customer id=1005 and print updated dictionary
e. Update the name of customer with customer id=1003 to "Mary" and print updated dictionary
f. Check whether details of customer with customer id 1002 exists in dictionary
SOLUTION
SHARE
If you find this useful, please share with your friends and Community.
CODE TOGETHER..GROW TOGETHER.
CODE TOGETHER..GROW TOGETHER.
Newer Posts
Newer Posts
Older Posts
Older Posts
Comments