"Ну и как же нам перекидывать строки ви числа?" спросите вы. Проверять каждый символ, очистив строку от лишних знаков и точек. Потом конвертить допустимые символы в числа и восстанавливать знак, дробную чусть и тд???
Самый быстрый способ это просто "попробовать" 😜
text = "-0.3"
try:
num = float(text)
except ValueError:
print('Dough!')
Всё остальное это уже парсинг и разбор символов для иных целей.
#basic
🗣#Momentum: One Last Push Before TGE
Momentum is launching the WAGMI phase — a 12-week trading campaign that leads directly to TGE.
What you need to know:
🟠 12 weeks of rewards
🟠 Add liquidity and earn multiplier points
🟠 Incentivized pools give up to 1.5x rewards
✔ Start here
🟠 Only these pools give the max multiplier — standard ones stay at 1x.
🟠 Don’t miss the final stretch before the token drops.
☝️ Start trading on Bybit
Crypto Drop Club 👉 SUBSCRIBE