[Tutor] Help return a pattern from list

Vineeth Rakesh vineethrakesh at gmail.com
Mon Jul 5 19:54:55 CEST 2010


Hello all,

Can some one help me to return a special pattern from a list.

say list =
["something1.mp3","something2.mp3","something4.pdf","something5.odt"]

now say I just need to return the files with .mp3 extension. How to go about
doing this?

Thanks
Vin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100705/27bc9d96/attachment.html>


More information about the Tutor mailing list