"Ну и как же нам перекидывать строки ви числа?" спросите вы. Проверять каждый символ, очистив строку от лишних знаков и точек. Потом конвертить допустимые символы в числа и восстанавливать знак, дробную чусть и тд???
Самый быстрый способ это просто "попробовать" 😜
text = "-0.3"
try:
num = float(text)
except ValueError:
print('Dough!')
Всё остальное это уже парсинг и разбор символов для иных целей.
#basic
🐍During this festive season of the #LunarNewYear, the entire CyberCharge team wishes you a Happy Year of the Snake!
May this year bring prosperity and joy to you and your loved ones 🫂
Thank you for your continued support, helping us grow and achieve incredible milestones.
We're just getting started! 🚀
🤖Earn NOW📱X(Twitter) 📱Chat💬Discord📱YouTube
Dear friends,
Warm greetings on the occasion of #LunarNewYear!
We wish you good health, happiness and prosperity! May this upcoming year bring along success and great fortune for you and your families.
Sincerely yours,
Russian Mission to #ASEAN
Bringing good luck and prosperity into the new year with the power of red! From lanterns 🏮 to envelopes 🧧, red is a traditional color of #ChineseNewYear. Don't forget to add a touch of red to your celebrations for a prosperous.
Принося удачу и процветание в новый год силой красного! От фонарей до конвертов, красный является традиционным цветом #ChineseNewYear. Не забудьте добавить нотку красного к своим празднованиям для процветающего.
#LunarNewYear#wallpaper
🧧 Follow 🧧@PeachLovesGoma🧧
Wish everyone a happy Lunar New Year! Bring glory back to Hong Kong in the year of dragon!
#HKDMovement
#glorytoHongKong
#lunarnewyear
#standwithhongkong