subject

2. Write function isAnagram(s1, s2) that checks whether two words s1 and s2 are anagrams and returns True otherwise it returns False. Two words are anagrams if they contain the same letters. For example, silent and listen; cinema and iceman are anagrams. (Hint: Create two lists from the two strings entered by the user. Sort the lists using sort method and check if two lists are identical.) Write the main function that prompts the user to enter two strings and displays the output:

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 20:00
2.)how does a graphical user interface (gui) on a touchscreen interface differ from a gui on a desktop or laptop? a.)a finger or stylus is used instead of a pointer. b.) a magic wand is used instead of a pointer. c.)users speak commands instead of using a pointer. d.)users visualize commands instead of using a pointer.
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
List the five on-board vehicle subsystems
Answers: 1
question
Computers and Technology, 24.06.2019 10:10
Scanning the road can be thought of as a
Answers: 2
question
Computers and Technology, 24.06.2019 22:00
Difference between ancient and modern mode of information transmission
Answers: 1
You know the right answer?
2. Write function isAnagram(s1, s2) that checks whether two words s1 and s2 are anagrams and returns...
Questions
question
Social Studies, 25.01.2021 17:10
question
Engineering, 25.01.2021 17:10
question
Mathematics, 25.01.2021 17:10
Questions on the website: 13722367