Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
#CHZ/USDT analysis :
#CHZ is currently in a downtrend and making new lows. Look for a price retracement to test the resistance zone for a short entry opportunity. Lower levels will be the target level.
TF : 2H
Entry : $0.04862
Target : $0.04200
SL : $0.05193
#CHZ/USDT analysis :
#CHZ is in an uptrend, trading above the 200 EMA. After the breakout of the previous swing high, the price is sustaining above it. The price is anticipated to continue its bullish momentum and rise higher. Wait for a pullback to the support zone for a long entry.
TF : 2H
Entry : $0.0535
Target : $0.0560
SL : $0.0519