Computers and Technology, 14.02.2020 04:12 ultimateknight8
Write a function that checks whether two words are anagrams. Two words are anagrams if they contain the same letters. For example, silent and listen are anagrams. The header of the function is:
def isAnagram(s1, s2):
(Hint: Obtain two lists for the two strings. Sort the lists and check if two lists are identical.)
Write a test program that prompts the user to enter two strings and checks whether they are anagrams.
Sample Run 1
Enter a string s1: silent
Enter a string s2: listen
silent and listen are anagrams
Sample Run 2
Enter a string s1: split
Enter a string s2: lisp
split and lisp are not anagrams
Answers: 1
Computers and Technology, 22.06.2019 11:00
The isometric projection camera technique provides an illusion of perspective by using things like parallax scrolling to create the illusion of 3d in a 2d game
Answers: 3
Computers and Technology, 23.06.2019 15:30
The processing of data in a computer involves the interplay between its various hardware components.
Answers: 1
Computers and Technology, 24.06.2019 15:30
During the software planning process, rick, a project manager, finds that his team has made an incorrect estimation of funds. what kind of risk has rick identified? rick has identified a risk.
Answers: 1
Computers and Technology, 24.06.2019 18:30
Is a type of bullying that takes place when a person intentionally posts negative information about another that is not true
Answers: 1
Write a function that checks whether two words are anagrams. Two words are anagrams if they contain...
Business, 16.10.2019 06:00
Mathematics, 16.10.2019 06:00
History, 16.10.2019 06:00
Social Studies, 16.10.2019 06:00
Social Studies, 16.10.2019 06:00
English, 16.10.2019 06:00
Mathematics, 16.10.2019 06:00
Spanish, 16.10.2019 06:00
History, 16.10.2019 06:00