Re: While and If messing up my program?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: While and If messing up my program?

From: <ajikoe@gmail.com>
Date: Wed Oct 05 2005 - 09:10:12 CEST

hi,

to get howmany element list appear you can code:
    ttllst=[4,3,45,3]
    for x in ttllst:
        print x, ttllst.count(x)
    pass

to get non duplicate element list you can code:
    ttllst=[4,3,45,3]
    print list(set(ttllst))

Cheers,
pujo
Received on Sat Oct 15 04:09:20 2005