Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def No_occorrenza(s):
- #@param s: string
- #@return string
- new_str = ''
- for ch in s:
- if ch in new_str and ch != ' ':
- new_str+='*'
- else:
- new_str+=ch
- return new_str
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement