The template for the program is as follows: def is_anagram(word1, word2): # Write the function code here def main(): # Write the main function # Call the main function main() 2. Write a function called copy_list that takes in a list of lists of integers, and returns a copy of ...
Python Copy 输出 ['a','a','ab','abc','abcb','b','b','ba','bc','bcba','cb','cba'] Python Copy
1 python3问题 1.Write a function that checks whether two words are anagrams and return True if they are and False they are not.Two words are anagrams if they contain the same letters.For example,“silent” and “listen” are anagrams.Use the following function header: def is_anagram(word...