Question
Consider the following Python code: import re
text = "apple, banana, cherry. apple pie, banana split." pattern = r"\bapple\b|\bbanana\b" matches = re.findall(pattern, text) print(matches) What will be the output of this code?Solution
Correct Answer: A (The \b word boundary ensures only whole words "apple" and "banana" are matched. re.findall returns all non-overlapping matches.)
____________ has changed my determination to achieve it and in fact, it is __________ than it was yesterday.
Hardly did we begin our journey ……. it started to rain.
Select the sentence with correct punctuation and capitalisation.
Fill in the blank with Suitable option.
Turn the lights ______, I want to go to bed.
Add suitable question tags to the following statements from among the choices given below them
Either of the options ______ acceptable. (form o...
Add suitable question tags to the following statements from among the choices given below them-
She enjoys reading novels, ______? (tag questio...
A) Maverick
B) Paucity
C) Ostensible
D) Unfeigned
Identify the form of each sentence given here from among the choices given below it :
You should complete your work or face the consequences.
The italicized word in the below sentence acts as _________
Father came before I left for college.
May you have a great day!