0 out of 464 challenges solved

Check 'a' followed by 'bb' or 'bbb'

Write a Python function `contains_a_followed_by_bbs` that checks whether a string contains the character 'a' followed by exactly two or three 'b' characters. The function should return `True` if such a pattern exists in the string, and `False` otherwise.

#### Example Usage
```python [main.nopy]
contains_a_followed_by_bbs("ac")  # False
contains_a_followed_by_bbs("abb")  # True
contains_a_followed_by_bbs("abbbb")  # False
contains_a_followed_by_bbs("abbb")  # True
```
import re

def contains_a_followed_by_bbs(text):
    """
    Check if the string contains 'a' followed by exactly two or three 'b' characters.

    Args:
        text (str): The input string to check.

    Returns:
        bool: True if the pattern exists, False otherwise.
    """
    # Write your implementation here
    pass