"Ну и как же нам перекидывать строки ви числа?" спросите вы. Проверять каждый символ, очистив строку от лишних знаков и точек. Потом конвертить допустимые символы в числа и восстанавливать знак, дробную чусть и тд???
Самый быстрый способ это просто "попробовать" 😜
text = "-0.3"
try:
num = float(text)
except ValueError:
print('Dough!')
Всё остальное это уже парсинг и разбор символов для иных целей.
#basic
🔥Free Mint – Heartscape NFT on Monad ✅
💠Claim your dreamy, emotion-filled Heartscape NFT for FREE on the Monad Network – a cascade of violet vibes & floating hearts awaits
☀️Mint Link :- Click Here
⚙️How to Mint ?
♦️Like & Retweet Morkie’sPost on X
♦️Join the Morkie Discord account
♦️Check your Web3 ID
♦️Mint your NFT on the website
🖼Heartscape is an ethereal, emotional NFT that captures deep feelings through beautiful art, violet hues, and floating heart visuals.
💎A must-have collectible for NFT lovers and emotional art fans
📌Limited-time mint – don't miss the magic
®Note - Please do your own research (DYOR) before joining to any airdrops project, also airdrop is 100% free. Don't send any fee or penny for receiving airdrop tokens required
#MonadNFT#Heartscape#FreeMint#Airdropcomic#NFTdrop#CryptoArt