<prompt> Kujenga namba ya simu validator.  <response>: Sure, here is a simple phone number validator in Python. To use this, please input a phone number as a string, with or without the country code:pythonimport redef phone_number_validatorphone_number: pattern re.compilerd1,3?s?d3-.s??d3-.s??d4 match pattern.matchphone_number if match: return Valid phone number. else: return Invalid phone number. Please enter your phone number in the format: country code xxx-xxx-xxx or xxx.xxx.xxx or xxx xxx xxx This function checks whether the input phone number fits the defined pattern: an optional country code at the beginning, followed by ten digits in 3-3-4 format, separated by a space, hyphen or a period. It returns a message indicating whether the phone number is valid or not. 