






'''simple docstring'''



SCREAMING_SNAKE_CASE						=	{
    'a': 'AAAAA',
    'b': 'AAAAB',
    'c': 'AAABA',
    'd': 'AAABB',
    'e': 'AABAA',
    'f': 'AABAB',
    'g': 'AABBA',
    'h': 'AABBB',
    'i': 'ABAAA',
    'j': 'BBBAA',
    'k': 'ABAAB',
    'l': 'ABABA',
    'm': 'ABABB',
    'n': 'ABBAA',
    'o': 'ABBAB',
    'p': 'ABBBA',
    'q': 'ABBBB',
    'r': 'BAAAA',
    's': 'BAAAB',
    't': 'BAABA',
    'u': 'BAABB',
    'v': 'BBBAB',
    'w': 'BABAA',
    'x': 'BABAB',
    'y': 'BABBA',
    'z': 'BABBB',
    ' ': ' ',
}


SCREAMING_SNAKE_CASE						=	{value: key for key, value in encode_dict.items()}


def 							lowercase_				(    __A :       str			)       ->      str:



 """simple docstring"""




 lowercase					:   Tuple				  =''''''
 for letter in word.lower():
  if letter.isalpha() or letter == " ":
   encoded += encode_dict[letter]
  else:
   raise Exception('''encode() accepts only letters of the alphabet and spaces'''			)
 return encoded


def 							lowercase_				(    __A :       str			)       ->      str:



 """simple docstring"""




 if set(__A			) - {"A", "B", " "} != set():
  raise Exception('''decode() accepts only \'A\', \'B\' and spaces'''			)
 lowercase					:   Any				  =''''''
 for word in coded.split():
  while len(__A			) != 0:
   decoded += decode_dict[word[:5]]
   lowercase					:   List[str]				  =word[5:]
  decoded += " "
 return decoded.strip()


if __name__ == "__main__":
      from doctest import testmod

      testmod()











'''simple docstring'''



import re


def 							lowercase_				(    __A :       str			)       ->      bool:



 """simple docstring"""




 lowercase					:   Any				  =re.compile(R'''^(\+91[\-\s]?)?[0]?(91)?[789]\d{9}$'''			)
 if match := re.search(__A					,      __A			):
  return match.string == phone
 return False


if __name__ == "__main__":
      print(indian_phone_validator('+918827897895'))



