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

Резултати

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

Пребарај: #uttarpradesh

当前筛选 #uttarpradesh清除筛选
We want you

@we_want_youu · Post #4241 · 16.08.2024 г., 01:53

Location - Pilibhit, UP, In the case of acid attack on an LLB female Muslim student .the police have arrested #Atul, who threw acid on a girl ,Atul was wearing a burqa. Atul was shot in the leg in the encounter. The victim is also learning the skills of advocacy from the same lawyer... where Atul Munshi is. Both of them had a good friendship.. the girl was not talking to the young man for some reason. Atul had thrown acid to teach the girl a lesson. The use of burqa was taken so that identification could not be done. But the police provided complete treatment to the accused within 36 hours and sent him to jail. #UttarPradesh #Islamophobia #womensafty #wewantyou @AlJajeera

Desi Memes Funny Jokes

@DESI_MEMES_Funny_Jokes · Post #5761 · 04.11.2024 г., 17:58

Lete lete Kamao Lakho 💸💸💵💵😨😨😨 #funnyreels#funnyvlog#funny#comedyreels#comedy#companygarden#explorepage#explore#diwalioffer#diwali#jobs#job#offer#vacancy#vacances#visa#freejob#howtoearnmoney#money#boys#theboys#shamimup70#uttarpradesh#up70#viral#trending

Desi Memes Funny Jokes

@DESI_MEMES_Funny_Jokes · Post #5831 · 10.11.2024 г., 09:24

Meri ammi khoo gayi guys . . . . #fyp#fy#reelitfeelit#meme#me#memes#punjab#haryana#delhiuniversity#delhi#panjabuniversity#pune#up#uttarpradesh#maharashtra#mumbai#bombay#navimumbai#puranidilli#puranidelhi#reels#bom#newchandigarh#chandigarh#uttarakhand#pakistan#lahore#islamabad#india#bharat