Vidyalelo
Python · Q81

Regular Expressions in Python

Programming · Python · question 81

Q81

What will be the output of the following Python code? re.sub('Y', 'X', 'AAAAAA', count=2)

A.
'YXAAAA'
B.
('YXAAAA')
C.
('AAAAAA')
D.
'AAAAAA'
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board