I've made an anagram function in python, I cannot figure out how to get the output to look like this: “Key”: word1, word2, word3 etc

后端 未结 0 348
长情又很酷
长情又很酷 2021-02-01 17:14
with open(\'words.txt\', \'r\') as read:
    line = read.readlines()

key_list = []

def make_anagram_dict(line):
    word_list = {}

    for word in line:
        word          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题