Answer the question
In order to leave comments, you need to log in
How to select the necessary elements from the list?
There is a list of models consisting of str and int:
models = ['chevrolet', 24, 'buick', 7, 'gmc', 7, 'cadillac', 6, 'daewoo', 0, 'geo', 0, 'holden', 0, 'hummer', 0, 'isuzu', 0, 'oldsmobil', 0, 'oldsmobile', 0, 'opel', 0, 'pontiac', 0, 'ravon', 0, 'saab', 0, 'saturn', 0, 'truck', 0, 'vauxhal', 0, 'vauxhall', 0]
['chevrolet', 'buick', 'gmc', 'cadillac']
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question