HP Codewars 2012 からスペルバインダー プログラムを復活させなければなりませんが、何をしているのかわかりません。これが私がこれまでに持っているものです。助けてください。私はpython 3.3.0を使用しています。ここにリンクがあります http://www.hpcodewars.org/past/cw15/problems/2012ProblemsFinalForPrinting.pdf
def fix (string):
'''The function of the repaired by a
speelbot abused Dictionary
word -> word to be repaired
a -> the point-to-exchange
b -> the correct letter
'''
word, a, b = string.split ( " " )
return word.replace (a, b)
for word in [ '"MUSTARD MC " , "JUNK J TR" , "MONSTER ON A" ']:
print (word, "->" to repair (word))