Untitled
Anonymous
python
07/18/2024 1:31 PM
168 B
39
Indexable
mixed_list = ['123', '456', '789', 'abc', 'def', 'ghi', '789'] my_new_list = [int(x) for x in mixed_list if x.isdigit()][::]
Editor is loading...
Leave a Comment
mixed_list = ['123', '456', '789', 'abc', 'def', 'ghi', '789'] my_new_list = [int(x) for x in mixed_list if x.isdigit()][::]