Examveda

What will be the output of the following Python code?
re.subn('A', 'X', 'AAAAAA', count=4)

A. 'XXXXAA, 4'

B. ('AAAAAA', 4)

C. ('XXXXAA', 4)

D. 'AAAAAA, 4'

Answer: Option C


This Question Belongs to Python Program >> Regular Expressions In Python

Join The Discussion

Related Questions on Regular Expressions in Python