If - Or statements

Patrick Down patrick.down at gmail.com
Tue Jun 7 11:18:33 EDT 2005


What about:

if True in [thefile.endswith(x) for x in
('mp3','mp4','ogg','aac','wma')]:




More information about the Python-list mailing list