cars = [['Ferrari', '200,000', '10,000km'], ['Porsche', '230,000',
    '10,000km'], ['Ferrari', '150,000', '10,000km'], ['Ferrari', '200,000',
    '10,000km'], ['Porsche', '230,000', '10,000km'], ['Porsche', '200,210',
    '10,000km'], ['Ferrari', '110,000', '10,000km'], ['Porsche', '400,000',
    '10,000km']]
for car, price, mileage in cars:
    if int(price.replace(',', '')) > 350000:
        pass
Сравните строку с целым числом