if-statement
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
Article plus récent
Article plus ancien
Accueil
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire