Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
#AUCTION/USDT analysis :
#AUCTION has tested the 200 EMA and rebounded from it. The price has broken out of the trendline, confirming the continuation of the bullish trend. The price is anticipated to test the swing high level.
TF : 30min
Entry : $33.35
Target : $37.30
SL : $30.98
#AUCTION/USDT analysis :
#AUCTION is in an uptrend, forming higher highs (HHs) and higher lows (HLs). The price has recently broken out of the trendline, indicating a potential resumption of its bullish momentum. It is anticipated that the price will continue to rise and test previous highs.
TF : 30min
Entry : $20.05
Target : $21.53
SL : $19.06