Untitled

mail@pastecode.io avatar
unknown
plain_text
5 months ago
125 B
2
Indexable
mixed_list = ['123', '456', '789', 'abc', 'def', '22s', '789']
my_new_list = [int(x) for x in mixed_list if x.isdigit()][::] 
Leave a Comment