initial creation

This commit is contained in:
2025-05-20 11:57:43 -04:00
commit c98b612926
8447 changed files with 1862526 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/env python
from collections import Counter
with open("../DATA/breakfast.txt") as breakfast_in:
foods = [line.rstrip() for line in breakfast_in] # <1>
counts = Counter(foods) # <2>
for item, count in counts.items(): # <3>
print(item, count)