"Ну и как же нам перекидывать строки ви числа?" спросите вы. Проверять каждый символ, очистив строку от лишних знаков и точек. Потом конвертить допустимые символы в числа и восстанавливать знак, дробную чусть и тд???
Самый быстрый способ это просто "попробовать" 😜
text = "-0.3"
try:
num = float(text)
except ValueError:
print('Dough!')
Всё остальное это уже парсинг и разбор символов для иных целей.
#basic
🎬 Nine films. Nine stories celebrating the charm and character of Singapore’s conserved buildings.
✨ Discover how these spaces, beautifully restored, continue to serve our needs today.
📺 Watch the films and cast your vote for the People’s Choice Award by liking your favourite in the NTU-AHA Films playlist. Voting ends on 12 Dec 2025, 6pm: https://go.gov.sg/ahashortfilms
#SingaporeArchitecture#SGHeritage#BuiltHeritage
👀 Look up the next time you walk past a shophouse!
Shophouse signages are more than just names on a building, they add character to our streetscapes.
Swipe through to to see how good signage design practices help to keep the charm of our conservation areas alive! 👉
#URAMemos#ConservationSG#SGHeritage#ShophousesOfSG
Love the vibes at Holland Village? We do too 🙌
From low-rise buildings to continuous walkways and elegant signages, find out how we’re retaining the unique charm and familiar identity of the area through thoughtful planning and design.
#HollandVillage#ExploreSingapore#UrbanDesign#IdentityNode#SGHeritage