Re: Removing First Duplicate in python
Awesome! Thanks much.
URL: http://forum.audiogames.net/viewtopic.php?pid=252659#p252659
___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin
Re: Removing First Duplicate in python
This works:box = 'bookkeeper'
prev = ''
new = ''
for a in box:
if a != prev:
new += a
prev = a
print new
URL: http://forum.audiogames.net/viewtopic.php?pid=252562#p252562
Removing First Duplicate in python
Hi gang. I have been driven insane by this for quite some time now. What we essentally want to do is remove the first duplicate in a string, but if there is space between characters, that would not be a duplicate. Thus, bookkeeper would return bokeper.My