Dương Mạnh Cường
New member
What will be the output of the following Python code?
A. [‘apples’ ‘and’ ‘mangoes’]
B. (7, 4)
C. [‘7’, ‘4’]
D. Error
Code:
a=re.compile('[0-9]+')
a.findall('7 apples and 3 mangoes')
B. (7, 4)
C. [‘7’, ‘4’]
D. Error