"Ну и как же нам перекидывать строки ви числа?" спросите вы. Проверять каждый символ, очистив строку от лишних знаков и точек. Потом конвертить допустимые символы в числа и восстанавливать знак, дробную чусть и тд???
Самый быстрый способ это просто "попробовать" 😜
text = "-0.3"
try:
num = float(text)
except ValueError:
print('Dough!')
Всё остальное это уже парсинг и разбор символов для иных целей.
#basic
#AntimicrobialResistance is when medicines like #antimalarials, tetracycline, septrin, and amoxicillin no longer treat diseases they cured previously.
Using antimicrobials "anyhow " is making the treatment of common infections more difficult.
Let us work together to save medicines.
#BeAntimicrobialsAware
#AntimicrobialResistance is when medicines like #antimalarials, tetracycline, septrin,
Amoxycillin no longer treat diseases they cure previously.
Using antimicrobials "anyhow " is making the treatment of common infections more difficult.
#WorldAntimicrobialAwarenessWeek2022
#AntimicrobialResistance is when medicines like #antimalarials, tetracycline, septrin, and amoxicillin no longer treat diseases they cured previously.
Everyone everywhere, including users and non-users of #antimicrobials has a role to play to prevent #AMR.
#BeAntimicrobialsAware