Computer Science, asked by tusharchakrabo63, 6 months ago

write a python program to create a dictionary of 5 elements -city name as keys and population as values .Also print the all the elements of dictionary​

Answers

Answered by valeriy69
0

\small\mathsf\color{pink}{Solution\: using\: python\: 3}

cities = {

"Mumbai": 12422373,

"Delhi": 11007835,

"Bangalore": 8436765,

"Hyderabad": 6809970,

"Ahmedabad": 5570585

}

for k, v in cities.items():

print(f"{k}: {v}")

\small\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions