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 special characters matches a pattern only at the end of the string?
A. \B
B. \X
C. \Z
D. \A
Show Answer
Next Question
Correct Answer:
C
Explanation: \B matches a pattern which is not at the beginning or end of a string. \X refers to re.VERBOSE. \A matches a pattern only at the start of a string. \Z matches a pattern only at the end of a string.
© 2024-2025 Python Circle
Contact
Sponsor
Archive
Sitemap