Basics of Python Programming: A Quick Guide for Beginners

Tuple and Dictionaries

Author(s): Krishna Kumar Mohbey* and Malika Acharya * .

Pp: 121-162 (42)

DOI: 10.2174/9789815179637123010008

* (Excluding Mailing and Handling)


Another important data type of Python is dictionary. In the previous chapter, we acquainted the readers with the lists and strings. In this chapter, we shall discuss dictionaries and lists. lists are the ordered collection of objects but dictionaries are an unordered collection of objects. dictionary values are referred to using key-value pair instead of positional offset. Due to this, they have found great usage in search tables, records and aggregation. Another concept introduced in this chapter is tuples. These are immutable like strings and represent a stable collection of arbitrary items. 

Keywords: Hash tables, Immutable and mutable, Mappings.

Related Journals
Related Books
© 2024 Bentham Science Publishers | Privacy Policy