Sobes.tech
Junior — Senior

Definition of string anagrams

livecode

Task condition

It is necessary to implement a function that checks whether two given strings are anagrams, i.e., consist of the same set of characters but are arranged in a different order.

word1 = 'heart'
word2 = 'earth'

def is_anagram(first, second) -> bool:
    """Check anagrams."""
    pass
Definition of string anagrams - Live Coding Python - sobes.tech