What will the counter=counter+1 will do in Python?
Answers
Answered by
1
Answer:
Using the Python Counter tool, you can count the key-value pairs in an object, also called a hashtable object. The Counter holds the data in an unordered collection, just like hashtable objects. The elements here represent the keys and the count as values. It allows you to count the items in an iterable list.
Similar questions