Question: In Python An anagram is a word or phrase formed by rearranging the letters of a different word or phrase, using all the original letters
In Python
An anagram is a word or phrase formed by rearranging the letters of a different word or phrase, using all the original letters exactly once. Write a function isAnagram( ) which, given two strings str1 and str2, write a function to determine if str2 is an anagram of str1. Ex: If the input is: str1 = "anagram", str2 = "nagaram" the output is: True Note: The input strings contain only lowercase alphabets. 295818.1713048.qx3zqy7 LAB ACTIVITY 8.24.1: Breakout Room Activities || 0/2 main.py Load default template... 1 def isAnagram(stri, str2): 2 3 :type str1: str 4 :type str2: str 5 :return type: bool 6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
