Guest User

Untitled

a guest
Jun 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. def fix_first(s):
  2.  
  3. s_first = s[0]
  4. ret = s_first + s[1:].replace(s_first, "*")
  5.  
  6. return ret
  7.  
  8. print(fix_first("babble"))
  9. print(fix_first("google"))
  10. print(fix_first("apple"))
  11. print(fix_first("orange"))
Add Comment
Please, Sign In to add comment