"Ну и как же нам перекидывать строки ви числа?" спросите вы. Проверять каждый символ, очистив строку от лишних знаков и точек. Потом конвертить допустимые символы в числа и восстанавливать знак, дробную чусть и тд???
Самый быстрый способ это просто "попробовать" 😜
text = "-0.3"
try:
num = float(text)
except ValueError:
print('Dough!')
Всё остальное это уже парсинг и разбор символов для иных целей.
#basic
Protecting our communities from hospital-acquired infections starts with strong Infection Prevention and Control #IPC programs in our health facilities.
We must invest more in these initiatives to safeguard public health and prevent the next epidemic.
#PreventionHAIs
#FundIPC
#TurnNigeriaOrange
Protecting our communities from hospital-acquired infections starts with strong Infection Prevention and Control #IPC programs in our health facilities.
We must invest more in these initiatives to safeguard public health and prevent the next epidemic.
#PreventionHAIs
#FundIPC
#TurnNigeriaOrange
Protecting our communities from hospital-acquired infections starts with strong Infection Prevention and Control #IPC programs in our health facilities.
We must invest more in these initiatives to safeguard public health and prevent the next epidemic.
#PreventionHAIs
#FundIPC
#TurnNigeriaOrange
Sustained domestic funding for #InfectionPreventionandControl is an essential investment in the fight against healthcare-associated infections and #antimicrobialresistance.
Let's protect lives, support research, and safeguard our healthcare systems.
#TurnNigeriaOrange
#PreventHAIs
#FundIPC
Protecting our communities from hospital-acquired infections starts with strong Infection Prevention and Control #IPC programs in our health facilities.
We must invest more in these initiatives to safeguard public health and prevent the next epidemic.
#PreventionHAIs#FundIPC
#TurnNigeriaOrange#IPCTWG