What is the purpose of the re.findall() function in Python?
A. It finds all occurrences of a pattern in a string and returns them as a list
B. It converts strings to regular expressions
C. It searches for a match anywhere in the string
D. It checks if a string contains a specific character
Answer: Option A

Join The Discussion