What is this code doing ''.join([ c for c in sample_string.lower() if c.isalpha() or c.isspace()])?
I understand join, lower() and for in statement. But I am not able to understand how using if is returning the string without any alpha and non-space characters.
Aucun commentaire:
Enregistrer un commentaire