Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


When does dictionary is used instead of a list in python?



When does dictionary is used instead of a list in python?..

Answer / Narendra Singh Selal

A dictionary is used in Python when you need to store data in key-value pairs. It allows you to access values quickly using their corresponding keys, making it ideal for situations where the relationship between elements (i.e., keys and values) is more significant than their order. Examples include: storing usernames with their associated passwords, or representing mathematical functions where the function name acts as a key and its implementation as a value.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

How does break work in python?

1 Answers  


So, what is an iterator, then?

1 Answers  


how do I protect python code?

1 Answers  


How do you find the type and identification number of an object in python?

1 Answers  


Point out the use of help() function?

1 Answers  


What does none type mean in python?

1 Answers  


Can you use r in python?

1 Answers  


What does isnull mean in python?

1 Answers  


What is django python?

1 Answers  


What is class variable in python?

1 Answers  


What is iterable python?

1 Answers  


Describe how to send email from a python script?

1 Answers  


Categories