"Ну и как же нам перекидывать строки ви числа?" спросите вы. Проверять каждый символ, очистив строку от лишних знаков и точек. Потом конвертить допустимые символы в числа и восстанавливать знак, дробную чусть и тд???
Самый быстрый способ это просто "попробовать" 😜
text = "-0.3"
try:
num = float(text)
except ValueError:
print('Dough!')
Всё остальное это уже парсинг и разбор символов для иных целей.
#basic
🚀 Back to Back profits are made in the Premium Group
🎯🎯#GENIUS/USDT has covered all the target to give a Profit of 167% to all Premium Members
👁🗨Contact @futurechief to enter the Premium Futures & SPOT Group for daily gain
🇺🇸 Gemini joined 125+ companies urging Congress to keep the #GENIUS Act as it was written.
These parties believe that changes would undermine legal stablecoin rewards and innovation.
➖➖➖➖➖➖➖➖➖
📣@cryptonewstel
✨Vip join⭐️