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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #273 · 26 јул.

В стандартном модуле random есть две очень похожие функции random.randint() random.randrange() Обе возвращают случайное значение из указанного диапазона >>> random.randint(10, 20) 12 >>> random.randrange(10, 20) 17 В чем же отличие? Дело в том что у randrange() есть третий параметр step. randint() действительно возвращает случайное число из указанного диапазона. randrange() на первый взгляд делает тоже самое если передать также два параметра. Но есть указать еще и step то наш диапазон усложняется, то есть в него попадёт не полный ряд значений. Например, я хочу получить случайное значение из диапазона но только чётное число. Тогда достаточно сделать так: >>> randrange(10, 20, 2) 16 Таким образом получается что randint это частный случай randrange без указания параметра step. Еще одно важное отличие в том, что randint() включает в диапазон второе значение а randrange() нет. То есть выражение randrange(10, 20) никогда не вернёт 20, а randint(10, 20) вернёт. #tricks#basic

Резултати

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

Пребарај: #menelikii

当前筛选 #menelikii清除筛选

⚔️ **THE BATTLE OF ADWA: AFRICA'S GREATEST VICTORY** ⚔️ **THE BATTLE OF ADWA: AFR 🏛️ March 1, 1896 - The day that changed African history forever! Emperor Menelik II led 100,000 Ethiopian warriors against 20,000 Italian colonial forces at Adwa. 👑ed 100,000 Ethiopian warri• Emperor Menelik II united all Ethiopian tribes • Empress Taytu Betul - strategic military advisor • Modern weapons acquired from European rivals ⚔️peror Menelik II led 1• 70% of Italian forces killed, wounded or captured • First African victory over European colonial power • Italy forced to recognize Ethiopian independence 🌍elik II led 100,000• Inspired anti-colonial movements worldwide • Pan-African pride and resistance symbol • Proved African military capability to the world ✊forever! Emperor Men• Ethiopia remained uncolonized • Victory celebrated across Africa and diaspora • March 1st - Victory Day in Ethiopia 🌟 When Africa stood up and said "NO" to colonialism! በአድዋ አፍሪካ ለቅኝ ግዛት "አይ" አለች! 🇪🇹 #Ethiopia#ኢትዮጵያ#BattleOfAdwa#MenelikII#AfricanPride#Anticolonial

Red Nile

@rednile12 · Post #11124 · 01.03.2026 г., 15:25

🇪🇹Adwa at 130: A Victory That Shaped a Continent By: Alexander Yoh. / @rednile12 On March 1, 1896, Ethiopia achieved the impossible—defeating Italy and sending shockwaves through colonial powers. Adwa wasn’t just a battle; it was a statement: Africa can defend its sovereignty. Today, Adwa’s legacy is a blueprint for the future—unity across diversity, strategic independence, and self-reliance. From Menelik II’s brilliant leadership to Ethiopia’s modern projects like the Grand Renaissance Dam, the message is clear: our strength is in standing together and shaping our destiny. 📖 Read the full story here: Adwa’s 130-Year Legacy #የጥቁር_ህዝብ_ኩራት#ዓድዋ_130 #የኢትዮጵያውያን_ድል#Adwa130#EthiopianPride#AfricanUnity#Sovereignty#MenelikII#TaytuBetul#RedNileMedia#AfricanResilience#AdwaLegacy#SelfReliance