Question #216253

what will be the output of the variable L after the following code is executed?



Expert's answer

import re


s = 'ACAABAACAAAB'

result = re.findall('A{1,2}', s)

L = len(result)

print(L)


#output is 5


LATEST TUTORIALS
APPROVED BY CLIENTS