Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fix_first(s):
- s_first = s[0]
- ret = s_first + s[1:].replace(s_first, "*")
- return ret
- print(fix_first("babble"))
- print(fix_first("google"))
- print(fix_first("apple"))
- print(fix_first("orange"))
Add Comment
Please, Sign In to add comment