Finished histCaseInsensitive

This commit is contained in:
Benjamin committed 2026-01-31 12:18:07 -05:00
1 parent 41d8a935b4
commit 1df5c1762c
1 file changed
+8
+8
View File
@@ -31,3 +31,11 @@ def histCaseSensitive(word_dict: Dict[str, List[int]]) -> None:
plt.simple_stacked_bar(keys, [uppers, lowers], width=80) plt.simple_stacked_bar(keys, [uppers, lowers], width=80)
plt.show() 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()