Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
#DODO/USDT analysis :
#DODO is currently in a downtrend, trading below the 200 EMA. Following an impulsive move, a retracement is underway. Price is expected to revert from the current level and move upward to test previous highs and the 200 EMA. Wait for a pullback in price for a long entry.
TF : 30min
Entry : $0.1200
Target : $0.1304
SL : $0.1150
#DODO result
1st target achieved in just 9 hours✅
One more quick profit 8%💰🤑
👉 More quick profit signals available in premium channel. Hurry up 🏃♂👇
☎️ Contact @FutureExpertAdmin
🌎 The dodo bird, once native to Mauritius, vanished by the late 17th century. Little was documented about its appearance or habits, leaving scientists puzzled. Recent studies of preserved bones and rare historical notes suggest the dodo was likely grayish with small wings and weighed up to 18 kilograms. ✨
#dodo⚡#extinction⚡#mysteries
👉subscribe Interesting Planet