mercredi 23 décembre 2015

python if any conditional

I was working on some python script and found this piece of code

if any(ignored in dir for ignored in START_UP):
    print "Hi How are you"
    return None

Can some one help me understanding this.How does if any working.Is it iterating through all the files in dir.Not getting it.

Aucun commentaire:

Enregistrer un commentaire