Guest User

Untitled

a guest
Jun 18th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. stars = "*" * len(word)
  2. while text.find(word) != -1:
  3. index = text.find(word)
  4. text = text[:index] + stars + text[index + len(word):]
  5.  
  6. return text
Add Comment
Please, Sign In to add comment