Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
#MASK/USDT analysis :
#MASK is currently in an uptrend, characterized by higher highs (HHs) and higher lows (HLs), and is trading above the 200-period exponential moving average (EMA).
The price is presently consolidating above a key support zone, and it is anticipated that it will bounce back from this level, continuing its upward trajectory and potentially testing previous highs.
TF : 4H
Entry : $2.877
Target : $3.300
SL : $2.610
#MASK/USDT analysis :
#MASK is in an uptrend. After breaking above the 200 EMA, the price is now sustaining above it. The price is currently consolidating over the support zone and is expected to bounce back from the current level, testing higher levels. Wait for a pullback before entering a long position.
TF : 4h
Entry : $2.265
Target : $2.531
SL : $2.129