Python MCQ Number 01385

Python MCQ Set 1 1. What is the output of the code shown? re.compile(’hello’, re.X) a) [‘h’, ‘e’, ‘l’, ‘l’, ‘o’] b) re.compile(‘hello’, re.VERBOSE) c) Error d) Junk value AnswerAnswer: b [Reason:] The compile function compiles a pattern of regular expression into an object of regular expression. Re.X is a flag which is also used…


This content is for paid premium members only.
You can view complete answer after activation your membership.


Need only one answers. Simply buy single day pass and email. We will send answers for this question.
Login Buy membership