Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
🗣#Superposition: Week 3 Galxe Quests
Superposition is an L3 built on Arbitrum, offering native liquidity and DeFi incentives.
It also uses Conduit tech — so by completing these, you’re farming two ecosystems at once.
New quest wave announced
What to do:
✔ Swap or add at least $10 liquidity on Camelot
✔ Make a swap on Longtail
✔ Claim 30 points on Galxe
☝️ Start trading on Bybit
Crypto Drop Club 👉 SUBSCRIBE
🌎 Quantum physics allows for the concept of “superposition,” where particles exist in multiple states at once. This principle forms the basis for theories suggesting that parallel worlds or dimensions might exist alongside our own. The famous “double-slit experiment” demonstrates superposition, as particles act as if they travel through two paths simultaneously. ✨
#quantum⚡#superposition⚡#multiverse
👉subscribe Interesting Planet
👉more Channels