




'''simple docstring'''







from collections import defaultdict





def 		snake_case_							(_a			:							str					,     _a			:							str  ):
    UpperCAmelCase     =	first_str.lower().strip()
    UpperCAmelCase     =	second_str.lower().strip()

    # Remove whitespace
    UpperCAmelCase     =	first_str.replace(''' '''					,     ''''''  )
    UpperCAmelCase     =	second_str.replace(''' '''					,     ''''''  )

    # Strings of different lengths are not anagrams
    if len(_a  ) != len(_a  ):
        return False

    # Default values for count should be 0
    UpperCAmelCase     =	defaultdict(_a  )

    # For each character in input strings,
    # increment count in the corresponding
    for i in range(len(_a  )  ):
        count[first_str[i]] += 1
        count[second_str[i]] -= 1

    return all(_count == 0 for _count in count.values()  )


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

   testmod()
   A									=input('Enter the first string ').strip()
   A									=input('Enter the second string ').strip()

   A									=check_anagrams(input_a, input_b)
   print(f"""{input_a} and {input_b} are {"" if status else "not "}anagrams.""")










'''simple docstring'''







from datetime import datetime

import matplotlib.pyplot as plt
import torch





def 		snake_case_							(_a			:							List[str]  ):
    for param in module.parameters():
        UpperCAmelCase     =	False





def 		snake_case_							():
    UpperCAmelCase     =	'''cuda''' if torch.cuda.is_available() else '''cpu'''
    if torch.backends.mps.is_available() and torch.backends.mps.is_built():
        UpperCAmelCase     =	'''mps'''
    if device == "mps":
        print(
            '''WARNING: MPS currently doesn\'t seem to work, and messes up backpropagation without any visible torch'''
            ''' errors. I recommend using CUDA on a colab notebook or CPU instead if you\'re facing inexplicable issues'''
            ''' with generations.'''  )
    return device





def 		snake_case_							(_a			:							Optional[Any]  ):
    UpperCAmelCase     =	plt.imshow(_a  )
    fig.axes.get_xaxis().set_visible(_a  )
    fig.axes.get_yaxis().set_visible(_a  )
    plt.show()







def 		snake_case_							():
    UpperCAmelCase     =	datetime.now()
    UpperCAmelCase     =	current_time.strftime('''%H:%M:%S'''  )
    return timestamp




