Course Solutions Uncategorized (Solved) : Needs Python Anagrams Write Function Checks Whether Two Words Anagrams Two Words Anagrams Q35835984 . . . .

(Solved) : Needs Python Anagrams Write Function Checks Whether Two Words Anagrams Two Words Anagrams Q35835984 . . . .

 

NEEDS TO BE IN PYTHON:

(Anagrams)

Write a function that checks whether two words are anagrams. Twowords 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 andcheck if two lists are identical.)

Write a test program that prompts the user to enter two stringsand 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

Expert

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : Need Help Homework Create Payroll Table Oracoo Company Contain Following Field Schema 10 3 Q28561981 . . . .(Solved) : Need Help Homework Create Payroll Table Oracoo Company Contain Following Field Schema 10 3 Q28561981 . . . .

<p>I need help with my homework.</p><p>Create a <strong>Payroll</strong> table for the <strong>ORACOOCompany</strong> that will contain the following field schema as of10/31/2011, and populate the table You may name the tablepayroll.</p><p>Name</p><p>Emp_id</p><p>Dep</p><p>Hourly_Rate</p><p>BiWeekly_Cur_Hours</p><p>Hire_