"Ну и как же нам перекидывать строки ви числа?" спросите вы. Проверять каждый символ, очистив строку от лишних знаков и точек. Потом конвертить допустимые символы в числа и восстанавливать знак, дробную чусть и тд???
Самый быстрый способ это просто "попробовать" 😜
text = "-0.3"
try:
num = float(text)
except ValueError:
print('Dough!')
Всё остальное это уже парсинг и разбор символов для иных целей.
#basic
😄Nice
➖➖➖➖➖➖
🔘Nice has a positive meaning and can be similar to good, pleasant or enjoyable.
🔜 We had a really nice time with the monkeys at the zoo.
🔜 It was so nice to see you!
🔘 The negative is also common.
🔜 The weather isn't nice today. Take a coat with you.
🔘We use nice to describe people who are kind, polite or friendly.
🔜 He lent you his phone? What a nice guy.
🔜 I love seeing Susy. She's a really nice lady.
#Nice👨🏫@America
➖➖➖➖➖➖➖➖➖➖➖➖
🆕 Crypto News @Money
😁 Crypto Game @Egame
🇺🇸 US News @America
🇯🇵 Japan News @Japan
🇦🇪 UAE News @Dubai
▶️ Popular Movies @Videos
😜 Best Funny Video @Funnys
😄Nice
➖➖➖➖➖➖
🔘Nice has a positive meaning and can be similar to good, pleasant or enjoyable.
🔜 We had a really nice time with the monkeys at the zoo.
🔜 It was so nice to see you!
🔘 The negative is also common.
🔜 The weather isn't nice today. Take a coat with you.
🔘We use nice to describe people who are kind, polite or friendly.
🔜 He lent you his phone? What a nice guy.
🔜 I love seeing Susy. She's a really nice lady.
#Nice👨🏫@America
➖➖➖➖➖➖➖➖➖➖➖➖
🆕 Crypto News @Money
😁 Crypto Game @Egame
🇺🇸 US News @America
🇯🇵 Japan News @Japan
🇦🇪 UAE News @Dubai
▶️ Popular Movies @Videos
😜 Best Funny Video @Funnys