how to run a python script


Here is what the above code is Doing:
1. It’s opening the file and reading it.
2. It’s using the re.compile() function to compile a regular expression pattern into a regular expression object.
3. It’s using the findall() method of the regular expression object to find all occurrences of the pattern in the string.
4. It’s printing out all the matches.