From 77e5e86e3d1cf357a669e9e379873cd1a4065bf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 24 Feb 2019 03:56:18 +0100 Subject: [PATCH] Counter, frozenset --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3124c0e..e750201 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ value = .pop(key) # Removes item from dictionary. ### Counter ```python >>> from collections import Counter ->>> colors = ['blue', 'red', 'blue', 'yellow', 'blue', 'red'] +>>> colors = ['red', 'blue', 'yellow', 'blue', 'red', 'blue'] >>> counter = Counter(colors) Counter({'blue': 3, 'red': 2, 'yellow': 1}) >>> counter.most_common()[0] @@ -120,7 +120,7 @@ Set ``` ### Frozenset -#### Is hashable so it can be used as a key in dictionary. +#### Is hashable, meaning it can be used as a key in dictionary. ```python = frozenset() ```