azrael wrote:
> if you are new to python then this will be easier to understand. if
> you change this a liitle bit (depending on syntax) it should work in
> any language.
> just copy and paste to a .py file
Yikes. If you are new to Python please ignore this un-Pythonic
abomination. Check(listItem
if you are new to python then this will be easier to understand. if
you change this a liitle bit (depending on syntax) it should work in
any language.
just copy and paste to a .py file
def main():
list, temp = [1, 1, 2, 4, 8, 8, 8, 8, 8, 8, 10], []
for i in range(len(list)):
if Che
Jerry Hill wrote:
> On 1/28/07, Scripter47 <[EMAIL PROTECTED]> wrote:
>> Can someone plz make a function for that takes a array, and then search
>> in it for duplicates, if it finds 2 or more items thats the same string
>> then delete all except 1.
>
> >>> myList = [1, 1, 2, 4, 8, 8, 8, 8, 8, 8,
On 1/28/07, Scripter47 <[EMAIL PROTECTED]> wrote:
> Can someone plz make a function for that takes a array, and then search
> in it for duplicates, if it finds 2 or more items thats the same string
> then delete all except 1.
>>> myList = [1, 1, 2, 4, 8, 8, 8, 8, 8, 8, 10]
>>> myList = list(set(
Hey,
Can someone plz make a function for that takes a array, and then search
in it for duplicates, if it finds 2 or more items thats the same string
then delete all except 1.
Short: it deletes all duplicates in a array
thanks
--
_.____ __
Hey,
Can someone plz make a function for that takes a array, and then search
in it for duplicates, if it finds 2 or more items thats the same string
then delete all except 1.
Short: it deletes all duplicates in a array
thanks
--
http://mail.python.org/mailman/listinfo/python-list