Тип строки в Python имеет очень много удобных методов. Сегодня пост про два таких метода которые чаще всего используются "однобоко". Это методы startswith() и endswith()
Самый обычный сценарий использования — проверка, начинается ли строка с указанной подстроки?
>>> "some_string".startswith("some")
True
И аналогичная ситуация с зеркальным вариантом этой функции, проверка совпадения с конца
>>> "some_string".endswith("some")
False
Так они используются в большинстве случаев что я видел. Но у этих функций есть еще два варианта использования.
🔸Сравнение нескольких подстрок
Для проверки нескольких подстрок в одной строке обычно вызывают эти функции несколько раз. Но на самом деле достаточно передать кортеж со всеми строками один раз. Если будет хоть одно совпадение то функция вернёт True.
>>>"my_image.png".endswith(("jpg", "png", "exr"))
True
🔸Диапазон поиска
Вторым аргументом можно передать индекс символа с которого следует начать сравнение, а третий аргумент это индекс последнего символа.
>>> ".filename.ext".startswith("file", 1)
True
>>> "file_###.ext".endswith('#', 0, -4)
True
Индексы можно указать отрицательными, что означает отсчёт с конца.
#trics#basic
😵💫Индекс страха и жадности
Когда продавать и покупать монеты? Разбираем на примере одного индикатора.
Индекс страха и жадности анализирует настроение на рынке криптовалют. Значение варьируется от 0 до 100 и основано волатильности монеты, трендах, объеме торгов и поисковых запросах.
Индикатор был создан для рынка акций, но его активно применяют и для криптовалют.
Как это работает?
– 0-24: Экстремальный страх
– 25-49: Страх
– 50-74: Жадность
– 75-100: Экстремальная жадность
Почему это важно?
– Понимание настроений помогает предугадывать поведение рынка.
– Когда индекс показывает страх, это хороший момент для покупки, если жадность – для продажи.
– Индикатор помогает выявить периоды, когда рынок перепродан или перекуплен.
Примеры использования:
– Покупка в период страха. К началу сентября 2023 года индекс начал переходить в зону экстремального страха. Далее зашло больше покупателей на рынок, и BTC постепенно показал рост с $25.000 до $73.000 в пике.
– Покупка в период жадности. Последний месяц индекс находился в зоне жадности, что говорило о возможной коррекции. Как итог, BTC показал снижение до $59.000.
В любом случае, не следует опираться только на Fear&Greed. Чтобы принимать взвешенные решения, нужно комбинировать индекс с другими инструментами.
Здесь вы можете следить за индексом
❤️🔥– Если пост был полезен
#intern | NotGuide
🔎Crypto evaluation
New tokens appear every day. What should you trust, and what should you avoid? We will provide you with the tools to evaluate projects on your own.
It is important to be able to analyze crypto and identify risks. Only a competent combination of knowledge and tools will help you preserve and even increase your assets.
Basic tools
The first step is to use crypto aggregators.
They provide all the important market data (e.g., market capitalization, price, trading volumes, and trends).
· CoinMarketCap
· CoinGecko
For more in-depth analysis, you can use the following resources:
· Santiment – social context analysis.
· BubbleMaps – data visualization of token movements.
· DexScreener – tracking new trading pairs, trading.
· TokenUnlocks – dashboard for token unlock data.
· TokenSniffer – checking new tokens for scams.
· Dune Analytics – creating analytical dashboards.
· Coinglass – derivatives exchange aggregator.
Sound judgment and observation are everything
Cryptocurrency analysis is not just about numbers and charts.
It is important to understand the technology and be able to identify promising teams.
Often, a single message on social media from a founder can tell you more than dozens of charts.
Follow the Twitter and Telegram accounts of projects you find interesting – it's a crucial part of the analysis.
Conclusions
Mastering the tools is important; however, successful analysis requires a comprehensive approach.
Continuous practice and adaptation to new market conditions are your keys to developing the necessary skills.
#intern | Not Guide
🤓What is a DEX? Differences between DEXs and CEXs
Today, we will delve into one of the key topics in Web3 and determine which trading platforms are better to use.
DEX (decentralized exchange) – platforms for cryptocurrency exchange that operate on blockchains and do not require the involvement of a third party to conduct transactions.
CEXs (centralized exchanges) were discussed in this post
Examples of DEXs:
– STON.fi, DeDust(on the TON blockchain)
– Uniswap, SushiSwap (on Ethereum, BSC, and others)
Differences between DEXs and CEXs:
1. Centralization vs. decentralization
– CEX: Controlled by a single organization that oversees all operations and holds users’ funds.
– DEX: Operates based on smart contracts that automatically execute operations without intermediaries.
2. Privacy and anonymity
– CEX: Require Know Your Customer (KYC) procedures (identity verification).
– DEX: Typically, does not require KYC, allowing for anonymity.
3. Asset control
– CEX: Users entrust their funds to the exchange, which is risky. There have been cases of hacks and bankruptcies—e.g., the former major exchange FTX.
– DEX: Users hold funds in their own wallets, trade directly, and maintain full control.
4. Fees and speed
– CEX: Lower fees and high transaction speeds due to centralized infrastructure.
– DEX: Fees are usually higher (depending on the blockchain); transaction speed depends on network capacity.
5. Tokens
– CEX: Strict listing procedures limit the tokens available for trading.
– DEX: Ability to trade any tokens available on the blockchain.
Conclusions
DEXs provide more freedom and asset control, reducing the risks associated with centralized structures; however, they have their drawbacks: high fees and sometimes slower transaction speeds.
It all depends on your needs and preferences. We recommend combining DEX and CEX platforms.
#intern | Not Guide
😵💫 Crypto Fear & Greed Index
When should you sell and buy crypto? Today, we’ll examine this question through the lens of the Crypto Fear & Greed Index.
The Fear & Greed Index analyzes the sentiment in the cryptocurrency market. The value ranges from 0 to 100 and is based on coin volatility, trends, trading volume, and search queries.
The indicator was created for the stock market but is actively used for cryptocurrencies as well.
How does it work?
– 0-24: Extreme Fear
– 25-49: Fear
– 50-74: Greed
– 75-100: Extreme Greed
Why is this important?
– Understanding sentiments helps predict market behavior.
– When the index shows "fear", it's a good time to buy, but if it shows "greed", it's a good time to sell.
– The indicator helps identify periods when the market is oversold or overbought.
Examples of use:
– Buying in a period of "fear". By early September 2023, the index started moving into the zone of "extreme fear". Further, more buyers entered the market, and BTC gradually rose from $25,000 to $73,000 at its peak.
– Buying in a period of "greed". Over the last month, the index remained in the "greed" zone, indicating a possible correction. As a result, BTC dropped to $59,000.
In any case, one should not rely solely on Crypto Fear & Greed. To make informed decisions, it's important to combine the index with other tools.
You can track the index here.
❤️🔥– If this post was helpful
#intern | Not Guide
🧐 Tracking Your Crypto Portfolio
Imagine you store cryptocurrencies on multiple platforms: NOT on Binance, TON in Wallet, and ANON in Tonkeeper. Tracking these coins becomes difficult and requires a lot of extra steps.
It is important to learn how to effectively manage your crypto portfolio to see the big picture and make informed decisions.
We have compiled a list of trackers to help you organize your assets.
1. CoinStats – Automatically tracks all wallets, including TON-based ones, and assets from centralized exchanges (Binance, OKX, etc.). It also allows users to enter cryptocurrencies and transactions manually.
2. CoinMarketCap – One of the most popular platforms for tracking cryptocurrencies. It supports EVM wallets and centralized exchanges.
3.Excel – Suitable for deep analysis and accounting of all investments. Many processes can be automated, but knowledge of the program is required.
Regularly monitor your assets to have an up-to-date understanding of your portfolio’s status.
#intern | Not Guide
🤫What is IDO?
Raising capital in the crypto industry is an important mechanism for the development of any project. What is the essence of an initial decentralized exchange offering (IDO)? Let’s break it down.
IDO – the process of initially offering tokens before they are listed on exchanges. In simple terms, it’s an opportunity for projects to raise funding directly from users.
The methodology is similar to initial public offerings (IPOs) in the stock market.
· IDOs allow projects to quickly launch into the market and raise funds for further development.
· Users can buy tokens at a low price and become early investors.
How it works:
1. A project announces its IDO and offers a certain number of tokens at a fixed price.
2. Depending on the platform, users fulfill specific conditions and participate. This could involve token staking or completing social tasks.
3. Distribution occurs after the token is listed on exchanges, according to the vesting schedule (token distribution plan among participants).
—
To participate in IDOs, you need to have a wallet (e.g Tonkeeper) and a certain amount of assets. Other conditions depend on the platform.
❤️🔥 – If you’ve participated in IDOs before or plan to try
#intern | Not Guide
📌 EPAM Training Center launches an internship for aspiring .NET Developers.
The program focuses on teaching you to solve tasks and getting practical experience. You will learn the concepts of .NET and the most common technologies, frameworks, and tools for working with .NET Core.
Upon completing the program, you will have an opportunity to join our global team of 61 600+ brilliant minds.
Learn more about our requirements and apply via the links below.
https://training.epam.uz/Training/Details/3384?lang=en
#epam#intern#dotnetuz
.NET Uzbekistan Community
➖➖➖➖➖➖➖➖➖➖
Telegram | Instagram | Youtube
🇹🇭 стажировка в оон
Где: UNOPS -управление ООН по обслуживанию проектов, команда по работе с гражданским обществом!
Что: успешный/ая кандидат/ка будет писать статьи, помогать организовывать семинары, делать презентации и помогать с другими задачами.
Требования: студенческий статус, интерес к теме организации, хорошие письменные навыки, желателен опыт в сфере работы с данными.
Языки: английский - обязательно, любой язык ООН будет плюсом.
Условия: есть стипендия, и грант на переезд небольшой, контракт на 6 месяцев
Подробнее
#intern#un#partnerships
Not Guide Navigation
Our goal is to make the process of learning web3 understandable, interactive, and beneficial for everyone. We've collected all the necessary guides and instructions in one place.
Current campaigns:
⁃ Basics of web3
⁃ NFTs. Pictures worth millions
⁃ Everything about the TON blockchain
⁃ How to buy cryptocurrency
Hashtags:
⁃ #basic / #intern / #advanced
⁃ #earnings
⁃ #update
Reflect, doubt, explore.
💎