May 2017
Intermediate to advanced
280 pages
6h 2m
English
At any given time during programming, if there is a need to add more values to the existing counter, then the update() method can be used instead of creating a new counter. Let's look at the update() method of Counter.

In the preceding example, we try to update an empty Counter using the update() method and passing "Locarno Caine" to the method. Thereby, the Counter returns frequency of each character. Did you notice that empty space also has a frequency?

In the preceding example, we use the update() method to update the existing ...
Read now
Unlock full access