diff --git a/README.md b/README.md index c603b8f7b..21031b065 100644 --- a/README.md +++ b/README.md @@ -96,8 +96,8 @@ value = .pop(key) # Removes item from dictionary. >>> colors = ['red', 'blue', 'yellow', 'blue', 'red', 'blue'] >>> counter = Counter(colors) Counter({'blue': 3, 'red': 2, 'yellow': 1}) ->>> counter.most_common()[0] -('blue', 3) +>>> counter.most_common(1) +[('blue', 3)] ```