from typing import List


def filter_interpreter(python: str, entries: List[str]):
    """
    Filters given list of entries by interpreter prefix.
    Example:
      filter_interpreter('prefix0', ['a', 'b', 'prefix0:c' ,'prefix1:d']) == \
        ['a', 'b', 'c']
    """
    res = []
    for x in entries:
        parts = x.split(":")
        if len(parts) == 1:
            # Common entry.
            res.append(x)
            continue

        assert len(parts) == 2
        if len(parts) == 2 and parts[0] == python:
            # Entry that corresponds to a specific python version.
            res.append(parts[1])
    return res