Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
🌍 The Netherlands has created an intricate system of dikes, canals, and pumps to manage water and reclaim land from the sea. Over a quarter of Dutch land lies below sea level thanks to these human-made defenses. ✨
#adaptation⚡#Netherlands⚡#watermanagement⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography🌍
Tashkent hosted the international forum Tashkent Water Week 2026 dedicated to water resource challenges.
Government officials, international organizations, and experts discussed water security and climate adaptation.
The focus was on water‑saving technologies, digital monitoring, and modern irrigation solutions.
Special report by Ekolog.uz
Author: Avazkhon Khaydarov
#TashkentWaterWeek#WaterSecurity#CentralAsia#ClimateChange#WaterManagement#EkologUz#EnvironmentalJournalism#Uzbekistan#WaterResources#Ecology
☘️Read the latest environmental news on the @ekologuz page. Follow us and send your suggestions and wishes via @eklguz_bot
Instagram | Facebook | Twitter | Sayt | Youtube.