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 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Which of the following would you find on a network
Answers: 3
question
Computers and Technology, 23.06.2019 02:30
Which component acts as a platform on which application software runs
Answers: 2
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
Mathematics, 31.10.2019 01:31
question
Mathematics, 31.10.2019 01:31
question
Mathematics, 31.10.2019 01:31
question
History, 31.10.2019 01:31
Questions on the website: 13722367