Krijo një konfirmues të numrit të telefonit.
def valid_phonenumber(number): if len(number) == 10 and number.isdigit(): return True else: return False if __name__ == '__main__': number = input('Enter a phone number: ') if valid_phonenumber(number): print('The phone number is valid.') else: print('The phone number is not valid.')