PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
Blog available for sell
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.
© 2024-2025 Python Circle
Contact
Sponsor
Archive
Sitemap