Computer Science, asked by madlady, 3 months ago

6) Write a statement to declare a dictionary whose

keys (Countries) values (Capital)

AFGHANISTAN KABUL

ALBANIA TIRANA

ALGERIA ALGIERS

ANDORRA ANDORRA LA VELLA

ANGOLA LUANDA

BULGARIA SOFIA

Answers

Answered by sayali2000
4

Answer:

keys=["AFGHANISTAN","ALBANIA","ALGERIA","ANDORRA","ANGOLA","BULGARIA" ]

values=["KABUL","TIRANA","ALGIERS","ANDORRA LA VELLA","LUANDA","SOFIA"]

D={keys[0]:values[0], keys[1]:values[1],keys[2]:values[2],keys[3]:values[3],keys[4]:values[4],keys[5]:values[5]}

print(D)

Explanation:

Similar questions