Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
🎯🚀#ABG began as a small idea fueled by big dreams. With a clear mission, a dedicated team, and strong community support, the project continues to grow with purpose. While we’re still in the development phase, our focus remains on building real solutions to real problems. We’re confident that, with persistence and collective effort, $ABG will evolve into a thriving ecosystem and achieve lasting success. The journey is ongoing, our commitment is unwavering. 🔥🔥
🔥https://x.com/abitcoingold/status/1924388768058130544