"Ну и как же нам перекидывать строки ви числа?" спросите вы. Проверять каждый символ, очистив строку от лишних знаков и точек. Потом конвертить допустимые символы в числа и восстанавливать знак, дробную чусть и тд???
Самый быстрый способ это просто "попробовать" 😜
text = "-0.3"
try:
num = float(text)
except ValueError:
print('Dough!')
Всё остальное это уже парсинг и разбор символов для иных целей.
#basic
✨️ On the occasion of National Unity Day, the Embassy of Russia in Pakistan in cooperation with Observer Diplomat has prepared a special magazine dedicated to the holiday
🔗 Read now: t.ly/oj2Yx
#UnityDay2024
🇷🇺 Today #Russia and its people celebrate national #UnityDay!
The day symbolizes the unity of our multiethnic peoples, celebrates our diversity in unity and our unerring devotion to the Motherland.
❗️ Happy #UnityDay!
#UnityDay2024#TogetherForever
🇷🇺 Today #Russia and its people celebrate national #UnityDay!
The day symbolizes the unity of our multiethnic peoples, celebrates our diversity in unity and our unerring devotion to the Motherland.
❗️ Happy #UnityDay!
#UnityDay2024#TogetherForever
🇷🇺 Today #Russia and its people celebrate national #UnityDay!
The day symbolizes the unity of our multiethnic peoples, celebrates our diversity in unity and our unerring devotion to the Motherland.
❗️ Happy #UnityDay!
#UnityDay2024#TogetherForever
🇷🇺 Today #Russia and its people celebrate national #UnityDay!
The day symbolizes the unity of our multiethnic peoples, celebrates our diversity in unity and our unerring devotion to the Motherland.
❗️ Happy #UnityDay!
#UnityDay2024#TogetherForever