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
Answers
Answered by
2
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.
Answered by
1
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.
Similar questions