InterviewSolution
Saved Bookmarks
| 1. |
Write a program to input names of n countries and their capitals and currency, store it in a dictionary and search and display for a particular country |
|
Answer» 1-In this program first you will call the dictionary function. 2-then you will INITIALISE the counter i as 1. 3-ask the no.of entries from user. 4-give while condition. 5-ask user to enter input(capital,country,CURRENCY) 6-store tuple in dictionary. 7-increment VALUE of i. 8-call keys usinf keys() function. |
|