InterviewSolution
Saved Bookmarks
| 1. |
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 |
|
Answer» Output : [‘sing’, ‘sing’] Justification : fmdall( ) finds all occurences of the given substring with metacharacter. |
|