When You Need Ordered Container Of Things, Which Will Be Manipulated, Use Lists.

When You Need Ordered Container Of Things, Which Will Be Manipulated, Use Lists.


  • 8 Jan, 2012

    Dictionary is key, value pair container and hence is not ordered. Use it when you need fast access to elements, not in ordered fashion. Lists are indexed and index of the list cannot be ?string? e.g. list ['myelement'] is not a valid statement in python.

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.