Abstract
In this chapter, we will explain the following:
-
What is a dictionary (Dict)
-
How to create and use dictionaries
-
How to implement a letter-frequency program using a Dict
-
What is a Set
-
Operations on sets: union, union!, intersect, etc.
-
How to use a Set to find all unique words in an input file
-
How to build a thesaurus from lines of synonyms
-
How to generate all combinations and permutations of a set
-
How to write a program to evaluate a hand in Scrabble
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2021 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this chapter
Cite this chapter
Kalicharan, N. (2021). Dictionaries and Sets. In: Julia - Bit by Bit. Undergraduate Topics in Computer Science. Springer, Cham. https://doi.org/10.1007/978-3-030-73936-2_10
Download citation
DOI: https://doi.org/10.1007/978-3-030-73936-2_10
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-73935-5
Online ISBN: 978-3-030-73936-2
eBook Packages: Computer ScienceComputer Science (R0)