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