python_rag_system/lesson_9/home_task/task30.py
2025-10-18 19:17:31 +03:00

7 lines
532 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# todo: Вы работаете с данными цен товаров, которые приходят в разном формате.
# Создайте список числовых значений цен, игнорируя некорректные записи.
# Все цены переведите в рубли. Задачу следует решить с использованием списковых включений.
prices = ["₽1500", "20.50 USD", "invalid", "€25.00", "$15.99", "18.99", "N/A", "¥5000"]