Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
125 B
1
Indexable
Never
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