Skip to content

Commit 2db2450

Browse files
question_3
1 parent 073e4ee commit 2db2450

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

RegEx/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,18 @@ Answer: c
5353
Explanation: It converts a given string into a pattern object.
5454
```
5555
* * *
56+
57+
## Question_2: What does the function re.match do? ##
58+
Question:
59+
```python
60+
a) matches a pattern at the start of the string
61+
b) matches a pattern at any position in the string
62+
c) such a function does not exist
63+
d) none of the mentioned
64+
```
65+
Answer:
66+
```python
67+
Answer: a
68+
Explanation: It will look for the pattern at the beginning and return None if it isn’t found.
69+
```
70+
* * *

0 commit comments

Comments
 (0)