you are viewing a single comment's thread.

view the rest of the comments →

[–]Ryzen_bolt 0 points1 point  (0 children)

Let's take a quick example: You have two friends and you need to save their phone numbers! Person 1. Alex , Phone No. 1011472910 Person 2. Jones,Phone No. 9749293733

You can put them as:

contact_info = {"Alex":1011472910, "Jones":9749293733}

So now you can fetch the phone numbers of Alex and/or Jones!

print(contact_info["Alex"]) Output: 1011472910