Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
#BAKE/USDT analysis :
#BAKE is currently retracing towards the 200 EMA. The price is expected to retest this moving average before continuing its bearish momentum. The current level presents a favorable opportunity for a long entry.
TF : 2h
Entry : $0.1507
Target : $0.1700
SL : $0.1414
#BAKE/USDT analysis :
The price is in an uptrend, forming higher highs (HHs) and higher lows (HLs) above the 200-period exponential moving average (200 EMA). The price is expected to bounce back from this level and continue its bullish momentum, aiming to test the previous swing high.
TF : 1h
Entry : $0.2783
Target : $0.2929
SL : $0.2705