+2 votes
in Class 11 by kratos

What will be the output of the script mentioned below? Justify your answer, def

find) ):

import re p=re.

compile(‘ sing+’)

searchl=p.findall(‘Some singer sing well’)

print searchl

1 Answer

+1 vote
by kratos
 
Best answer

Output : [‘sing’, ‘sing’]

Justification : fmdall( ) finds all occurences of the given substring with

metacharacter.

...