#part1 r1=r.split('\n\n') r2 = [c.replace('\n','') for c in r1] pass count= 0 for str in r2: n = len(set(str)) count+=n print(count)