In Python 3.6, why re.findall returns different items in the following example compared to re.finditer?
text = "He was carefully disguised but captured quickly by 10 caps."
print(re.findall(r"ca(p)", text))
for i in re.finditer(r"ca(p)", text):
print(i)
findall returns['p', 'p'], while finditer returns two "cap". It happens only when I use parenthesis!