Answer to Question #216253 in Python for xander

Question #216253

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



1
Expert's answer
2021-07-11T15:05:56-0400

import re


s = 'ACAABAACAAAB'

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

L = len(result)

print(L)


#output is 5


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS