>>> from contact_book import have_prefix >>> d = {"maria":"931111111", "pep":"912222222", "anna":"93119391"} >>> have_prefix(d, '9311') True >>> have_prefix(d, '93117') False >>> have_prefix(d, '6') False