<prompt> Ha u fuoa khoele, ngola tšebetso ho hlahloba hore na ke nomoro ea mohala e nepahetseng.123-456-7890  <response>: Instruction in English: Given a string, write a function to check if it is a valid telephone number. . Response in English: Here is a function that checks if a given string is a valid telephone number in the format XXX-XXX-XXX:pythondef isValidNumbernumber: if lennumber ! 12: return False for i in rangelennumber: if i in 3,7: if numberi ! -: return False elif not numberi.isalnum: return False return TrueGiven the input you provided: 123-456-7890, lets test the function.pythontest_input 123-456-7890result isValidNumbertest_inputprintresult Returns TrueThe function returns True which means the provided string is a valid telephone number. . Response in Sesotho: Mona ke tsebetso e hlahlobang hore na mohala o fanoeng ke nomoro ea mohala e nepahetseng ka sebopeho sa XXX-XXX-XXX: python def isValidNumbernomoro: haeba lennomoro ! 12: return False for i in range lennomoro: haeba ke ho 3,7: haeba ke nomoroi ! -: khutlisa Elif ea bohata e seng nomoroi.isalnum: khutlisa False return Ke nete Ka lebaka la kenyeletso ea hau fanoeng: 123-456-7890, a re lekeng mosebetsi. python test_input 123-456-7890 result isValidNumbertest_input printsephetho E Khutlisa Nete Mosebetsi o khutlisa Nete ho bolelang hore khoele e fanoeng ke nomoro ea mohala e nepahetseng. 