code: def restore_punctuation(original,modified):
      ''' If punctuation was accidently removed, use this function to restore it.
          requires the orignial string with punctuation. '''
      ret = ''
      count = 0
      try:
          for c in original:
              if c.isalpha(): 
                  ret+=modified[count]
                  count+=1
              else: ret+=c
      except IndexError:
          print('restore_punctuation: strings must have same number of alphabetic chars')
          raise
      return ref restore_punctuation(original,modified):
      ''' If punctuation was accidently removed, use this function to restore it.
          requires the orignial string with punctuation. '''
      ret = ''
      count = 0
      try:
          for c in original:
              if c.isalpha(): 
                  ret+=modified[count]
                  count+=1
              else: ret+=c
      except IndexError:
          print('restore_punctuation: strings must have same number of alphabetic chars')
          raise
      return ret
docs: If punctuation was accidently removed, use this function to restore it.
          requires the orignial string with punctuation.