adventofcode-2020/06/part1

15 lines
273 B
Python
Executable File

#!/usr/bin/python3
import string
sum = 0
with open("input") as fh:
groups = fh.read().split("\n\n")
for g in groups:
yes = set()
for c in g:
if c in string.ascii_lowercase:
yes.add(c)
sum += len(yes)
print(sum)