"Ну и как же нам перекидывать строки ви числа?" спросите вы. Проверять каждый символ, очистив строку от лишних знаков и точек. Потом конвертить допустимые символы в числа и восстанавливать знак, дробную чусть и тд???
Самый быстрый способ это просто "попробовать" 😜
text = "-0.3"
try:
num = float(text)
except ValueError:
print('Dough!')
Всё остальное это уже парсинг и разбор символов для иных целей.
#basic
🚨 Freedom for Palestinian journalist Mustafa Ayyash 🚨
Austria is forcibly detaining Mustafa Ayyash since his arrest, without any judicial ruling, and has disabled his social media accounts to silence his voice.
A Palestinian journalist, a voice for Gaza and Palestine, now needs our voices.
📢 We demand immediate disclosure of his safety and his immediate release!
#Prisoners
#FreedomForMustafaAyyash
#ExecutionOfPalestinianPrisoners
#PrisonersExecutionLaw
O Allah, grant relief to all Muslim prisoners and restore their freedom and safety swiftly, not delayed.
#Prisoners
#FreedomForMustafaAyash
#ExecutionOfPalestinianPrisoners
#ExecutionOfPrisoners
#FreeMustafaAyash
#FreedomForMustafaAyashFromAustrianPrisons
O Allah, grant relief to all Muslim prisoners, and restore to them freedom and safety without delay.
#Prisoners
#FreedomForMustafaAyyash
#ExecutionOfPalestinianPrisoners
#PrisonersExecutionLaw
#freemustafaayash
#FreedomForMustafaAyyashFromAustrianPrisons
#ExecutionLaw
Be Daraa, protecting the prisoners and those released.
#PrisonersAndReleasedFriday
#PrisonersAreARedLine
#WeWillOpenOurAlAqsa
#SaveThePrisoners
#Prisoners
#FreedomForMustafaAyash
#ExecutionOfPalestinianPrisoners
#ExecutionOfPrisoners
#FreeMustafaAyash
#FreedomForMustafaAyashFromAustrianPrisons