[issue43900] string comprehension

Zachary Ware report at bugs.python.org
Tue Apr 20 18:07:52 EDT 2021


Zachary Ware <zachary.ware at gmail.com> added the comment:

filtered_s = ''.join(c for c in s if c in string.ascii_lowercase)

----------
nosy: +zach.ware

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43900>
_______________________________________


More information about the Python-bugs-list mailing list