TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #418 · 9 мар.

Оператор pipe позволяет писать более компактный код, реализуя логику объединения данных (Union). Важно помнить, что его поведение зависит от контекста. Побитовые операции (логическое OR) result = 5 | 3 # 5 (0101) | 3 (0011) = 7 (0111) Самое главное - не путать с оператором or, это другое! Объединение множеств set_a = {1, 2, 3} set_b = {3, 4, 5} set_c = set_a | set_b # {1, 2, 3, 4, 5} set_c |= {5, 6} # {1, 2, 3, 4, 5, 6} Слияние словарей dict_1 = {"a": 1, "b": 2} dict_2 = {"b": 3, "c": 4} merged = dict_1 | dict_2 # {'a': 1, 'b': 3, 'c': 4} merged |= {"d": 5} # {'a': 1, 'b': 3, 'c': 4, 'd': 5} Аннотации типов, заменяет Union def process_data(value: int | str) -> None: print(value) Допустимо использовать в isinstance или issubclass isinstance(3, int | float) # True Паттерн-матчинг status_code = 404 match status_code: case 200 | 201 | 204: print("OK") case 400 | 404 | 500: print("ERROR") Для использования в своих классах требуется переопределить метод __or__ Так же нашел библиотеку pipe которая добавляет еще много возможностей. Рекомендую ознакомиться ;) #basic

Hashtags

Резултати

Пронајдени 3 слични објави

Пребарај: #academicenglish

当前筛选 #academicenglish清除筛选
Journey to Fluency

@fluencyinenglish · Post #7906 · 21.10.2025 г., 11:22

🎯 Cohesive Markers in IELTS Writing: “However”, “On the other hand”, “Nevertheless”, “On the contrary” Many IELTS candidates use these interchangeably — but each has a different nuance and function. Let’s break it down 👇 🔹 However → introduces contrast or opposition to the previous idea. ✅ Example: The internet has made communication faster. However, it has also reduced face-to-face interaction. 🧠 Use it when contrasting two aspects of the same topic. 🔹 On the other hand → introduces the other side of an argument or comparison. ✅ Example: Some believe online classes are more flexible. On the other hand, others argue they reduce motivation. 🧠 Use it to show two perspectives, not just contrast. 🔹 Nevertheless → means “despite what was said before”. It softens the contradiction. ✅ Example: The task was challenging. Nevertheless, the students completed it successfully. 🧠 Use it when you acknowledge difficulty but show a positive outcome. 🔹 On the contrary → used to refute or correct a previous statement. ✅ Example: Some claim young people are lazy. On the contrary, many work hard while studying. 🧠 Use it when directly disagreeing or correcting a wrong view. 💡 Summary Tip: ❌ Don’t use them randomly. ✅ Choose based on logical relation: Contrast → however Opposite view → on the other hand Concession → nevertheless Correction → on the contrary ✍️ Accurate cohesive markers = higher coherence & cohesion score in IELTS Writing! #IELTSWriting#Cohesion#AcademicEnglish#LinkingWords

Journey to Fluency

@fluencyinenglish · Post #7907 · 16.02.2026 г., 05:43

To be herded into doing something Meaning (short): to be forced or strongly pressured into doing something without real choice. توضیح فارسی: عبارت to be herded into doing something یعنی فرد یا گروهی به‌صورت اجباری یا تحت فشار شدید و بدون اختیار واقعی به انجام کاری سوق داده می‌شوند؛ معمولاً با حس کنترل شدن، مثل راندن گله. این نشان می‌دهد که در شرایطی که پوشش رسانه‌ای شدید و جهت‌دار درباره یک اتهام وجود دارد، ممکن است افکار عمومی بدون فرصت بررسی مستقل و انتقادی به سمت پذیرش یک روایت خاص سوق داده شوند؛ یعنی عملاً «گله‌وار» به یک نتیجه هدایت شوند، نه اینکه آگاهانه آن را انتخاب کنند. #Vocabulary #AcademicEnglish #CriticalThinking #MediaLiteracy #DiscourseAnalysis #PowerOfLanguage #EnglishLearning #AdvancedEnglish

Andijan Development Center

@adceducate · Post #8530 · 19.05.2024 г., 10:38

🎉 IELTS topshirishni xohlovchilar uchun yangilik! 🎉 O'quv markazimizda taniqli o'qituvchi Danila Polikarpov IELTS imtihoniga tayyorgarlik ko'rish uchun guruhlar ochilayotganini mamnuniyat bilan e'lon qilamiz! 💼🌟 Danila bilan siz nafaqat testning har bir qismini ishonchli tarzda engishingiz, balki ingliz tilini o'rganishda shaxsiy maqsadlaringizga erishishga tayyorlanishingiz mumkin! 📚✨ Yangi guruhimizga qo'shilish va IELTS dan yuqori natijalarga erishish imkoniyatini qo'ldan boy bermang! 🚀💯 Savollaringiz bo'lsa biz bilan bog'laning +998742261078 +998742281121 +998742276163 +998742252536 +998952017878 yoki Telegram @admofadc ga yozing #IELTSpreparation#Englishexam#studyabroad#Languagelearning#IELTStips#Testpreparation#Englishskills#Examstrategy#AcademicEnglish #IELTSsuccess# Languageproficiency #Studygram #IELTSclass# Examgoals #Testtaking#Englishproficiency#LearnEnglish#IELTSpractice#Testprep#Languageexam