1.

Which of the following functions does not accept any argument?(a) re.purge(b) re.compile(c) re.findall(d) re.matchI had been asked this question in an interview for job.My query is from Regular Expressions topic in portion Regular Expressions and Files of Python

Answer»

The CORRECT option is (a) re.purge

Easy explanation - The function re.purge is USED to clear the cache and it does not accept any ARGUMENTS.



Discussion

No Comment Found

Related InterviewSolutions