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
If you embed a word table into powerpoint, what happens when you make edits to the embedded data? a. edits made to embedded data change the data in the source file; however, edits made to the source file will not be reflected in the embedded data. b. edits made to embedded data don't change the data in the source file; however, edits made to the source file will be reflected in the embedded data. c. edits made to embedded data don't change the data in the source file, nor will edits made to the source file be reflected in the embedded data. d. edits made to embedded data will change the data in the source file, and edits made to the source file will be reflected in the embedded data.
Answers: 1
question
Computers and Technology, 24.06.2019 15:00
What questions about an audience should be asked during presentation preparation? check all that apply. what does the audience already know about the topic? how will multimedia tools inspire the audience? is the information interesting and engaging? how will this information affect the presentation? will the audience change the message’s purpose? what is likely to interest the audience?
Answers: 3
question
Computers and Technology, 24.06.2019 16:00
How are roger williams, james oglethorpe, and william penn similar?
Answers: 3
question
Computers and Technology, 24.06.2019 19:30
Dtp allows you to manipulate text boxes in the following ways. more than 1 answer. a.move them b.rotate them c.resize them d.all of the above e.none of the above
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
Chemistry, 30.03.2020 23:17
question
History, 30.03.2020 23:17
question
Mathematics, 30.03.2020 23:17
Questions on the website: 13722363