Examveda

What will be the output of the following Python code?
re.compile('hello', re.X)

A. ['h', 'e', 'l', 'l', 'o']

B. re.compile('hello', re.VERBOSE)

C. Error

D. Junk value

Answer: Option B


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

Join The Discussion

Related Questions on Regular Expressions in Python