diff --git a/HW 3/dcs211_hw3.py b/HW 3/dcs211_hw3.py index 2727b1e..4b38ec6 100644 --- a/HW 3/dcs211_hw3.py +++ b/HW 3/dcs211_hw3.py @@ -30,4 +30,12 @@ def histCaseSensitive(word_dict: Dict[str, List[int]]) -> None: lowers = [word_dict[word][1] for word in keys] plt.simple_stacked_bar(keys, [uppers, lowers], width=80) + plt.show() + +def histCaseInsensitive(word_dict: Dict[str, List[int]]) -> None: + + keys = list(word_dict.keys()) + totals = [sum(word_dict[word]) for word in keys] + + plt.simple_bar(keys, totals, width=80) plt.show() \ No newline at end of file