Learn how to check if two strings are anagrams using Python! This simple one-liner code uses the sorted() function and is perfect for beginners learning string manipulation and logic building in Python.
📌 Code Used:
def is_anagram(s1, s2):
return sorted(s1) == sorted(s2)
print(is_anagram("listen", "silent"))
Great practice for interviews, coding challenges, or Python beginners!
👍 Like | 💬 Comment | 🔔 Subscribe for more Python tutorials.
#Python, #PythonProgramming, #Anagram, #CheckAnagram, #PythonForBeginners, #PythonBasics, #LearnPython, #PythonCode, #StringManipulation, #PythonTutorial, #Coding, #PythonOneLiner, #BeginnerPython, #PythonInterviewQuestions, #PythonShorts
On this page of the site you can watch the video online Check Is it Anagram Program | Python Coding for Beginners | Python Program #4 with a duration of hours minute second in good quality, which was uploaded by the user Info Studio 29 July 2025, share the link with friends and acquaintances, this video has already been watched 376 times on youtube and it was liked by 2 viewers. Enjoy your viewing!