mardi 17 novembre 2020

Why the answer is unexpected upon input?

 l = ['sone.com']

 for a in l:
    if '@' and '.' in a:
        print('ok')

Result is coming to be ok. Why?

Aucun commentaire:

Enregistrer un commentaire