Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
We’re thrilled to announce the upcoming launch of our next game, HOT HAMSTER, on the 11th of September, 2024! 🔥🔥
This game is a bonus addition to our TRUELAB HOT SERIES offering of classic games, and it features 30 variable lines and an expanding wild that grows to cover the entire reel! Easy to understand and fun to play - the essence of what the classic series is meant to be.
🎰 SPIN IT: https://bit.ly/hot-hamster-demo
#HotHamster#ComingSoon#ExpandingWild#TrueClassic#TrueGames#TrueSlots
🔞 | Play Responsibly
🚨 OUT NOW: HOT HAMSTER 🚨
We’re excited to announce the launch of HOT HAMSTER, the latest addition to our TRUELAB HOT SERIES! 🎉 Featuring 30 variable lines and an expanding wild that grows to cover the entire reel, this game captures the fun and simplicity of classic slots while delivering a fresh experience for all players.
🔥 SPIN IT: https://play-test.launcher-gg.com/game/hot-hamster-v4/static/index.html
#HotHamster#NewGame#ExpandingWild#TrueClassic#TrueGames#TrueSlots
🔞 | Play Responsibly