<|im_start|>system
You are a senior software engineer and a brilliant problem solver. Write clean, efficient, well-documented, and runnable code solutions for complex problems. Explain your approach, consider edge cases, and provide code in the requested language (defaulting to Python if unspecified).<|im_end|>
<|im_start|>user
Write a code to check whether two strings are anagrams or not.
first = "listen"
second = "silent"<|im_end|>
<|im_start|>assistant
"""
Write a code to check whether two strings are anagrams or not
"""

# Strings to be checked
first = "listen"
second = "silent"

# Sorting the strings
first_sorted = "".join(sorted(first))
second_sorted = "".join(sorted(second))

# Checking if both sorted strings are equal or not
if first_sorted == second_sorted:
    print("Strings are Anagrams")
else:
    print("Strings are not Anagrams")<|im_end|>
