PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
SALE
This blog is available for sale. Please 'contact us' if interested.
Advertise with us
Python Multiple Choice Questions
Which of the following will result in an error? >>> p.search("door")
A. >>> p = re.compile("d")
B. >>> p = re.escape('hello')
C. >>> p = re.subn()
D. >>> p = re.purge()
Show Answer
Next Question
Correct Answer:
C
Explanation: The function re.subn() will result in an error. This is because subn() requires 3 positional arguments while we have entered none.
© 2022-2023 Python Circle
Contact
Sponsor
Archive
Sitemap