Q. Find the output of the below code.

Code:
import re
print(re.search(‘aa?cb?’,’aacb aaccbd’).group())
  • (A) aacb
  • (B) aaccbd
  • (C) aacb aaccbd
  • (D) 2
πŸ’¬ Discuss
βœ… Correct Answer: (A) aacb

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
219
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
94%
Success Rate