PFP191Xuất hiện trong 1 đề thi
What is the output of the following code snippet? ```python text = "abrdabrab" pattern = "ab" count = 0 for i in range(len(text) - len(pattern) + 1): if text[i:i + len(pattern)] == pattern: count += 1 print(count) ```
Các lựa chọn
A3
B2
C0
D1