15 lines
273 B
Plaintext
15 lines
273 B
Plaintext
|
#!/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)
|