code: def replaceint(fname, replacewith='%s'):
      
      words = fname.split()
      for i, word in enumerate(words):
          try:
              word = int(word)
              words[i] = replacewith
          except ValueError:
              pass
      return ' '.join(words)
docs: replace int in lst