Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def noRep(string):
- # @param string: stringa
- # @return string
- for B in range(len(string)):
- for ch2 in range (len(string)):
- if string[B] == string [ch2] and B != ch2 :
- count= string[:ch2-1] + '*' +string[ch2:]
- return count
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement