Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
#ROSE/USDT analysis :
#ROSE is in an uptrend, forming higher highs and higher lows above the 200ema. The price is expected to sustain its bullish momentum and test new highs. Wait for a price retracement over the support zone for a long entry.
TF : 2h
Entry : $0.0606
Target : $0.0696
SL : $0.0561
#ROSE +%33 in just 5 days 🤑🤑
Legs Trading Hub VIP members are just enjoying their profits 🍹
We are crafting our signals by the power of CoinLegs algorithms.
Why don't you chime in and say hello? ⤵️
https://discord.com/invite/8RKtAA9cxZ