[pfemidi@pfemidi ~]$ python
Python 3.8.3 (default, May 29 2020, 00:00:00)
[GCC 10.1.1 20200507 (Red Hat 10.1.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> words = ['one', 'two,', 'three', 'four,', 'five', ',six', 'seven', 'eight,']
>>> word_with_comma = [word for word in words if ',' in word]
>>> word_with_comma
['two,', 'four,', ',six', 'eight,']
>>>
[pfemidi@pfemidi ~]$
хотя я пишу (По крайней мере, мне так кажется) под 32