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

Резултати

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

Пребарај: #attraction

当前筛选 #attraction清除筛选
Voir de ses propres yeux

@voir_yeux · Post #11650 · 07.02.2026 г., 20:49

🇮🇳 Au moins une personne est morte et treize autres ont été blessées dans l'effondrement d'une attraction foraine à Faridabad, dans l'État d'Haryana, dans le nord de l'Inde. C'est ce qu'a rapporté l'agence ANI, citant le commissaire de district de Faridabad. Selon le commissaire, vers 18h15 (UTC+6), une attraction s'est effondrée lors de la foire Surajkund, tuant un inspecteur de police qui tentait de sauver d'autres personnes. Treize autres personnes ont été blessées et hospitalisées, a indiqué l'agence. #inde#attraction#effondrement#victimes

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40282 · 09.12.2025 г., 07:04

Why are some voices so attractive? 🎤 It is about what they signal. Women often find deep male voices appealing because they suggest a larger body size. But a touch of breathiness is key, it softens the voice, making it seem less aggressive and more attractive. Meanwhile, men tend to prefer higher-pitched female voices, which can signal a smaller frame. It’s all subconscious — our ears are sizing people up.👂💘 [Read more] @googlefactss#Voice#Attraction#Psychology#Dating#Science

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40153 · 21.11.2025 г., 18:50

🎙️Science Fact: Women's voices sound more attractive when recorded during their most fertile time of the month. 🎶 Studies show listeners rate these voices higher and even experience a slight testosterone boost. [Read more] @googlefactss #VoiceScience#Fertility#Attraction#FunFact#Biology