#voice-chat-text-0

1 messages · Page 70 of 1

hoary olive
#

Its this standardized language, which supports arguably anything, tested. verified ✅

rugged root
#

You know a LOT more things than me

hard wraith
#

so like if i spent around 2 hours everyday for 6 months would i be able to create it

#

sorry im asking dumb questions

rugged root
#

Sure, don't see why not. Just gotta work for it, lots of research

hard wraith
#

might just outsource

hard wraith
#

my original plan was to get like basic understanding then outsource the work

rugged root
#

No no, they're not dumb questions. It's not a dumb question if you learn from it

hoary olive
#

Ohio, what a wonderful city

#

full of monsters

rugged root
#

Bearizona

hard wraith
rugged root
#

@terse needle That's what makes the song itself Ironic

golden sonnet
#

k bye for now
don't miss me🥲

rugged root
#

It's a meta thing

vocal basin
#

I'll take position on Java similar to that of bcantrill:
I'm glad it preventively reduces the number of code written in C++

rugged root
#

No no

#

She didn't

torpid pendant
#

bye @golden sonnet

rugged root
#

For sure

#

@golden sonnet Catch you later

rugged root
rugged root
#

However, you'll typically look for packages with google or by word of mouth

hard wraith
#

alright

#

fair enough

rugged root
#

I usually look for stuff like that by saying python 3 [thing here] So probably in this case python 3 stock trading. You'll probably find articles about it, which will mention libraries and what not

hoary olive
#

Bad WORD?

#

not goood

hard wraith
#

i mean

#

i think if i try just messing around with stuff

#

i can learn

#

idk i hate like the classroom-esq setting

rugged root
#

Well conveniently

#

!resources

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

hard wraith
#

where its like individually learning things

hoary olive
#

lavish rover
#

--kick james

hoary olive
#

this is a nice flag

rugged root
#

We've got tons of options listed for getting a handle on self education

lavish rover
#

This is a nice flag

vocal basin
#

where did all "u"/"you" names go
daamn, it takes me too long to join the trend

mossy cedar
rugged root
#

I'll be honest, I've been tuning you guys out for the past few minutes

hoary olive
#

your the worst class clown tbf

hard wraith
terse needle
hoary olive
#

mustafa is just a teachers pet

mossy cedar
willow light
#

Nothing like office politics to start the day

lavish rover
rugged root
#

Well, I'd recommend getting the basics of the language down if you haven't already. Need a firm foundation to work from. From there.... perhaps the folks in #data-science-and-ml can help with that kind of stuff? Not really sure, honestly

hard wraith
#

i don't have any basics

#

lmfao

vocal basin
hoary olive
willow light
#

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

rugged root
#

I'd recommend looking at "A Byte of Python"

#

Or if youtube videos are more your jam, we've got a couple channels listed on the resources page that are great

#

I just personally prefer reading so I can go at my own pace

torpid pendant
#

Aren't you supposed to be on a work call sir

rugged root
#

And of course you can always ask questions here for clarification on concepts and what not

#

Me? Already did that like.... an hour ago

torpid pendant
#

Time flies

hoary olive
rugged root
#

Yep, he's great

hard wraith
#

or like that mosh guy or wtvr his name is

magic rose
#
from ultralytics.yolo.v8.detect import DetectionPredictor
import cv2
import pyttsx3

model=YOLO("C:/Users/USER/Desktop/py/best.pt")
results=model.predict(source="0", show=True)
print(results)```  how to add audio file upon prediction of object
rugged root
#

I personally like Corey. And not just because I've chatted with him before

hoary olive
#

whois corey?

rugged root
#

Corey Schafer

magic rose
#

can someone provide a starting point

#

or a guide

rugged root
#
rugged root
#

Any time!

magic rose
#

I cant find any youtube videos

hard wraith
#

i really appreciate the help 🙏

rugged root
#

Happy to help, it's why I'm here

magic rose
#

@rugged root

#

can you help me

rugged root
#

What kind of starting point are you needing?

hoary olive
#

hemlock usally is the one that asks for help. how the tables have turned

rugged root
#

That's news to me

magic rose
#

How do I play an audio file or text to speech upon object detection ```from ultralytics import YOLO
from ultralytics.yolo.v8.detect import DetectionPredictor
import cv2
import pyttsx3

model=YOLO("C:/Users/USER/Desktop/py/best.pt")
results=model.predict(source="0", show=True)
print(results)```

rugged root
#

Huh I don't actually know. I haven't futzed around with those libraries before

#

Well actually wait

#

What are the results if it does detect and if it doesn't

torpid pendant
#

still failing @hoary olive

magic rose
#

0: 480x640 1 drone, 561.0ms this is what I get in the terminal

molten pewter
#

"Party Rock Anthem" is a song by American music duo LMFAO, featuring British singer Lauren Bennett and American music producer GoonRock. It was released as the first single from their second album Sorry for Party Rocking in 2011.
The single went to number one by the late summer of 2011 in Australia, Belgium, Brazil, Canada, Denmark, France, Germ...

vocal basin
rugged root
#

@willow light Throw them a life preserver?

#

Like right at their head

vocal basin
rugged root
#

Yeah I was in college at that time

magic rose
#

no, it happens all the time

#

running all the time

hoary olive
magic rose
#

wait

#

I can just add a break statement

hoary olive
rugged root
#

@mossy cedar Well you're not wrong

magic rose
#

and play the audio file

#

cant I

hoary olive
#

they had this fight

magic rose
#

well no I cant

hoary olive
#

AYO WTF

torpid pendant
rugged root
#

So is the issue that you can't play audio files at all or just in the case of detection

vocal basin
hoary olive
magic rose
#

0: 480x640 1 drone, 561.0ms these are the results in terminal upon detection

vocal basin
torpid pendant
#

😢

magic rose
#
from ultralytics.yolo.v8.detect import DetectionPredictor
import cv2

model=YOLO("C:/Users/USER/Desktop/py/best.pt")
results=model.predict(source="0", show=True)
print(results)``` how do I add it in this code and play the mp3?
vocal basin
hoary olive
#

funny?

vocal basin
rugged root
#

Bio Sharpies

vocal basin
rugged root
#

That specific brand of markers

vocal basin
#

(((or maybe you can just call ffplay)))

vocal basin
magic rose
#

from playsound import playsound
playsound('audio.mp3')

#

this is fine

#

I have no idea of the bool logic you have spoken

#

kinda new sry

vocal basin
magic rose
#

yea

hoary olive
#

what nestle used to do

vocal basin
# magic rose yea

can you give an example of results in case it detected an in case it didn't?

magic rose
#

0: 480x640 1 drone, 561.0ms these are the results in terminal upon detection

torpid pendant
magic rose
#

0: 480x640 1 drone, 561.0ms detection 0: 480x640 654.0ms no detection

vocal basin
#

looks like this may work

detected = ',' in str(results)
#

though

#

what type is results?

vocal basin
magic rose
#

it returns video, class name, number of classes , image size

hoary olive
#

I think magical girl knows this, but they had these alternatives to milk (from mothers). and they had this group go to africa and advertise this. so it got popular right? but this milk had sum shit within it which made the kids addicted to it, so more demand. Not too sure about this part, but this is what a recal. And then there was this huge lawsuit about them brainwashing innocent women and .... This is because the mothers had to supply the milk, because they didnt have money to buy it from nestle

hoary olive
torpid pendant
vocal basin
torpid pendant
#

80 sounds hot

magic rose
#

terminal

#

0: 480x640 1 drone, 561.0ms

magic rose
#

here 1 refers to the number of objects detected

#

0: 480x640 1 drone, 561.0ms

vocal basin
hoary olive
#

bro this isnt funny

rugged root
#

Addictive Milk Additives
Also a good album name

hoary olive
rugged root
torpid pendant
#

😉

magic rose
#

same results @vocal basin

limpid umbra
#

monical + top hat + cane + spatz shoes + x + y + z

hoary olive
#

Its on his non existing work computers guys

#

leave him alone

vocal basin
#

it should output only the detections, I guess

torpid pendant
#

I can't stand funding our local schools... dreadful, push those little brats out into the cold I say. Then we should be pooing outside our homes like god intended. I just love the smell of fresh sewage in the morning.

hoary olive
#

welp bad brain today

vocal basin
hoary olive
#

excuse my slip ups

rugged root
#

Oh god.... AI generated filler episodes

magic rose
#

still the same @vocal basin

vocal basin
#

(did you save the file?)

magic rose
#

the same output

rugged root
#

Icepick and a steady hand

rugged root
#

HA

hoary olive
#

fun fact

vocal basin
#

what does print(type(results)) print?
it can't print the same

hoary olive
#

they actually burn a layer on your eyes

rugged root
#

@mossy cedar So glad you caught yourself there

hoary olive
#

because your eye isnt actually smooth

rugged root
#

So very very glad you caught yourself

hoary olive
#

so this way the contact goes on smoothly

hoary olive
#

if they didnt burn out the eye , it wouldn't be as smooth

#

Simp alert

rugged root
#

@mossy cedar Please please please please don't be creepy

#

Let's just

#

Not

#

Pretty sure I've called you out on this before

hoary olive
#

na bro

#

your just creepy af

rugged root
past oar
#

thats weird

magic rose
#

same results

past oar
#

im tired too

hoary olive
#

suck ....

rugged root
#

Hmmmmmmmmmmmmmmmmmmmm

past oar
#

i cant wait for my week to finish...

rugged root
#

Literally nothing

hoary olive
#

hemlock????

rugged root
#

I make a joke from time to time

hoary olive
#

hes the worst C# developer

vocal basin
hoary olive
#

certified

rugged root
#

Yeah, fuck that Hemlock guy

hoary olive
#

you idiot 🤣

torpid pendant
#

i quit @hoary olive

vocal basin
rugged root
#

Trying to remember how many there were

torpid pendant
#

he has kids i quit @hoary olive

hoary olive
torpid pendant
#

💀

rugged root
#

@willow light Wait, does it have that kind of access?

#

Fortran I mean

vocal basin
rugged root
#

Wasn't sure if it had net access

#

But I guess it would have to, right?

magic rose
#

@vocal basin I just found out something

hoary olive
#

can you just stop being creepy @mossy cedar ?

magic rose
#

we dont need a print statement

#
from ultralytics.yolo.v8.detect import DetectionPredictor
import cv2
from playsound import playsound

model=YOLO("C:/Users/USER/Desktop/py/best.pt")
model.predict(source="0", show=True)




#

this works fine

vocal basin
magic rose
#

yes

hoary olive
#

woah woah chill bud

vocal basin
# magic rose yes

if you want to access that from the program, you need to remove show=True

magic rose
#

ok

#

and

vocal basin
#

and use results

rugged root
#

@proven fox I hear you

#

I'm just stuck typing only

magic rose
#

so I remove show true

#

and store it in results

#

and print it?

vocal basin
sweet lodge
vocal basin
sweet lodge
hoary olive
rugged root
#

Wait

#

In the compiler alone?

magic rose
#

unfortunately I keep getting the same ouptut no matter what

rugged root
#

My favorite anime of all time: Mushi-shi

hoary olive
#

@proven fox @willow light you guys talk from experience i see

rugged root
#

So good

willow light
#

YES

#

that's a very good one

vocal basin
magic rose
#

autosave

willow light
#

I still stand by Macross Frontier

hoary olive
# willow light YES

supply and demand brother , supply some good ones for me ;) 20-40m prefered

magic rose
#

my head is hurting been going on this for 6 hrs on a 7 line code

hoary olive
#

"predicted good things"?

past oar
hoary olive
#

gonna head out yall

magic rose
#

but I got a deadline tom

hoary olive
#

have a nice day

magic rose
hoary olive
#

theres just one type of grass

#

ones that useful

past oar
#

you are stuck on it. take a 2 minute break away from it and come back with a fresh perspective. also water helps @magic rosewith headaches

rugged root
#

Ohhhhh yeah

#

I need to ask him how that's going

magic rose
#

I already took a break yesterday.. I am again doing it now. no progress

rugged root
#

Charles Darwin simulator

vocal basin
# rugged root In the compiler alone?

"In the compiler alone":
a horror movie about a programmer finding themselves working on an ancient custom Fortran compiler, who joined just days before the last person working on it died of old age, trying to save the company from going out of business

rugged root
#

HA

#

Infinite number of coders writing an infinite number of lines will eventually write the Necronomicon?

vocal basin
rugged root
#

It's not bad if you turn it up

torpid pendant
#

cya @hoary olive

past oar
#

"time machine"
a horror movie about a gamer that is transported back into time and stuck using an old dialup connection trying to download his favorite fps game

rugged root
#

@proven fox Yeah your mic is really quiet

#

@willow light We still love you

proven fox
#

dk what else i can do

rugged root
#

No no

#

Not your fault, it happens

sweet lodge
past oar
#

@willow light try jack and coke@mossy cedar

rugged root
#

Give me cider any day

rugged root
#

@proven fox Gin

#

No

#

Gin straight

#

Love it

#

God damn it lancebot

willow light
#

Love it Lancebot

past oar
#

scotch plain is amazing

willow light
#

I'm more a fan of bourbon. I have a bottle of Elijah Craig that I'm going through VERY slowly

rugged root
#

@proven fox It doesn't mead my expectations

#

Jesus Jager is gross

#

Licorice

magic rose
#

@vocal basin

#

i just noticed something

#

all the terminal lines are in red

#

I printed a yes statement

#

its in white

rugged root
#

It's foul

magic rose
#

so technically theres no terminal output?

rugged root
#

Haaaaate the taste

mossy cedar
rugged root
#

So am I

#

Both?

#

First one then the other

willow light
rugged root
#

It's not licorice

molten pewter
rugged root
#

Strawberry usually

#

Sugar

#

Standard Twizzlers flavor is strawberry

#

They also have cherry

mossy cedar
#

whats the closest thing to alchohol but not alohol

molten pewter
mossy cedar
#

how to get high without geting high-

vocal basin
rugged root
#

Sour

#

Sour candy

willow light
proven fox
willow light
sweet lodge
sweet lodge
willow light
#

if you want the good candy, just go to The Cape

vocal basin
rugged root
#

I don't have any right now

#

Was clarifying what someone was saying

sweet lodge
#

y

rugged root
#

Meth

#

That's quitter talk

vocal basin
#

was going to say "baseball bat" too

rugged root
#

God there's so many jokes

#

@molten pewter Twizzlers do not get stuck in your teeth

willow light
#

yes i do like sucking on things

rugged root
#

They've never gotten stuck in mine

#

I do now

willow light
#

I usually just swallow twizzlers whole.

rugged root
#

That does not sound pleasant

#

As in 1000 layers of itself?

#

Not about competing. Just having fun

sweet lodge
rugged root
#

No, I'm a hobbyist

#

I'm administrative support at an accounting firm

#

Mostly do IT work

willow light
#

I'm an SRE, and Python is my preferred language for doing work.

#

Although increasingly I've been using Go and TypeScript.

rugged root
#

@proven fox Dude please mute if you're going to cough

#

Jesus

#

Mucus

#

Please don't

#

No please

#

@proven fox Not overly appropriate for here

#

Majority yes

#

And boy howdy did they

willow light
#

AI Generated Anime Girls

#

I can hear Twitter melting down from here.

rugged root
#

There's already models for that

#

Anime images

#

mage.space

#

It's a site

#

They have a lot of models listed

torpid pendant
#

ai generate me

#

🤌🤌

rugged root
#

Stable Diffusion in most of those cases

#

It

torpid pendant
#

What’s a dolly

rugged root
#

mage.space HAS midjourney on it

torpid pendant
#

Yes

rugged root
#

There's like

#

12 models on there

torpid pendant
#

AI generate me

molten pewter
#

Dall-E

torpid pendant
#

Oh

#

What is dall-e

rugged root
#

Don't share

molten pewter
torpid pendant
#

Can I use to generate myself

rugged root
#

Hard to generate what we have no context for

willow light
#

There are several models, such as the Global Forecast System, the North American Model, the European Centre for Medium-range Weather Forecasts, the New Mesoscale Model, the High Resolution Rapid Refresh, etc.

torpid pendant
rugged root
#

I still need to get a better handle on the pixel art ones

torpid pendant
#

do my cat first

willow light
#

Mine too

torpid pendant
#

someone show me

#

how to do it

rugged root
#

It'll bounce the link if it isn't white listed

proven fox
rugged root
#

And I don't know if it - ah we must have added it. Oh no wait, I think verified ones are also in the clear

#

They have a generator on there

past oar
torpid pendant
#

Okay now where to go

willow light
#

I’ll stick with this AI generated image

torpid pendant
#

now where

#

when i get to playground

#

@molten pewter

#

Call me kamisama

proven fox
torpid pendant
rugged root
#

@willow light Well played

torpid pendant
proven fox
torpid pendant
rugged root
#

@willow light Thought it was a sheep

#

Probably some day

torpid pendant
rugged root
#

Can we not with this creepy sexual stuff?

#

@mossy cedar

#

Not in the server, guys

#

Don't care what you do, just not here in the server

#

@proven fox Satanic

#

Yes, how dare I try to enforce the rules of the server

#

What a bastard I am

torpid pendant
willow light
junior current
#

a

rugged root
#

@proven fox You want to stream your game? Plenty of other servers for that

proven fox
rugged root
#

Enjoy

vocal basin
# rugged root <#783829285227462697>

I remember asking whether something (that can reasonably be qualified as from the second list) was fine and getting an answer that it was okay or at least that it wouldn't get restricted

proven fox
vocal basin
#

@proven fox
there are different definitions of OOP
python's OOP includes most things like Java except for static typing

#

also

#

Java

#

Java's lambdas aren't really objects

#

same for C#

#

OOP isn't spaghetti
OOP is just popular and people who write spaghetti code usually go for popular things

#

!e

print(issubclass(type, object))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

True
sharp urchin
#

hmm

vocal basin
#

even namespaces are objects

vocal basin
#

same for most dynamic languages

#

!e

print(type(globals()))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

<class 'dict'>
sharp urchin
#

true

#

anime's ass

#

its good

#

but the theme is too dark

#

i mean the brightness lvl

#

of the movie

#

its all made in a very low light theme

#

for sum reason

#

sorry come again?

#

couldnt hear you

#

ps?

#

one

#

13 cel

vocal basin
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

0 0 0
vocal basin
#

20 ml of ethanol, iirc

stuck furnace
#

Yeah I sleep terribly when I've had a drink

vocal basin
sweet lodge
stuck furnace
#

I think you fall to sleep quicker, but the quality of the sleep is worse 🤔

sweet lodge
#

Just stumble in...
Throw myself in bed...
Roll off the dog...

vocal basin
#

play minesweeper

stuck furnace
#

Maybe this is an old person thing blobpain

sweet lodge
#

Sleep all night that way

vocal basin
sweet lodge
#

My memory has you in college

stuck furnace
sweet lodge
#

oof

stuck furnace
sweet lodge
#

ic ic

graceful magnet
#

True

stuck furnace
viscid lagoonBOT
#

:x: @stuck furnace, please enable DMs to play minesweeper.

stuck furnace
#

:C

tidal shard
vocal basin
#

I've betrayed minesweeper for chess

graceful magnet
#

Just press CTRL + SHIFT + I in your browser and cookie clicker is completed

vocal basin
vocal basin
graceful magnet
#

Everquest?

#

It's pronounced Yoani 😄

stuck furnace
#

Then fire ze missiles!

graceful magnet
#

That's a great programming project

#

I don't know man you can just call me Joe

stuck furnace
#

I've got to head off now 👋

graceful magnet
vocal basin
#

@proven fox it's pronounced latekh

#

(it's not latin X, it's Greek Chi)

graceful magnet
#

χ (pronounced like the word he)

#

he

molten pewter
vocal basin
graceful magnet
#

It got me thinking about the time and effort I had to give to my bestiee and I was so happy to be able to get a decent amount of sleep

#

Ox-Scythe?

#

I would open the mic if you had permission to do so

#

Game dev is hard

verbal zenith
#

!e

file = """Maria Loves Playing Handball Except Alone
Jacob Likes Soccer Except With His Friends"""

a = file.split('\n')
print(a[0][20:])
wise cargoBOT
#

@verbal zenith :white_check_mark: Your 3.11 eval job has completed with return code 0.

['Maria Loves Playing Handball Except Alone', 'Jacob Likes Soccer Except With His Friends']
whole bear
#

Handball Except Alone

#

Maria Loves Playing Handball Except Alone
Jacob Likes Soccer Except With His Friends

verbal zenith
#

!e

file = """Maria Loves Playing Handball Except Alone
Jacob Likes Soccer Except With His Friends"""

a = file.split('\n')
print(a[0][20:])
whole bear
#

Handball except alone

wise cargoBOT
#

@verbal zenith :white_check_mark: Your 3.11 eval job has completed with return code 0.

Handball Except Alone
whole bear
#

!e

file = """Maria Loves HighSpeed Handball Except Alone
Jacob Likes Soccer Except With His Friends"""

a = file.split('\n')
print(a[0][20:])
wise cargoBOT
#

@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.

d Handball Except Alone
verbal zenith
#

!e

file = """Maria Loves Playing Handball Except Alone
Jacob Likes Soccer Except With His Friends"""

a = file.split(' ')
a = [b.split('\n') for b in a]
wise cargoBOT
#

@verbal zenith :white_check_mark: Your 3.11 eval job has completed with return code 0.

['Maria', 'Loves', 'Playing', 'Handball', 'Except', 'Alone\nJacob', 'Likes', 'Soccer', 'Except', 'With', 'His', 'Friends']
verbal zenith
#

!e

file = """Maria Loves Playing Handball Except Alone
Jacob Likes Soccer Except With His Friends"""

a = file.split(' ')
a [x for y in a for x in y]
print(a)
wise cargoBOT
#

@verbal zenith :white_check_mark: Your 3.11 eval job has completed with return code 0.

[['Maria'], ['Loves'], ['Playing'], ['Handball'], ['Except'], ['Alone', 'Jacob'], ['Likes'], ['Soccer'], ['Except'], ['With'], ['His'], ['Friends']]
arctic spire
#

!e

file = """Maria Loves Playing Handball Except Alone
Jacob Likes Soccer Except With His Friends"""

print([file[i%2::2] for i in range(5)])
wise cargoBOT
#

@arctic spire :white_check_mark: Your 3.11 eval job has completed with return code 0.

['MraLvsPaigHnbl xetAoeJcbLksSce xetWt i red', 'ai oe lyn adalEcp ln\nao ie ocrEcp ihHsFins', 'MraLvsPaigHnbl xetAoeJcbLksSce xetWt i red', 'ai oe lyn adalEcp ln\nao ie ocrEcp ihHsFins', 'MraLvsPaigHnbl xetAoeJcbLksSce xetWt i red']
arctic spire
#

Is this the desired output?

whole bear
#

nope

verbal zenith
#

!e

file = """Maria Loves Playing Handball Except Alone
Jacob Likes Soccer Except With His Friends"""

a = file.split(' ')
a = [x for y in [z.split('\n') if '\n' in z else z for z in a] for x in y]
print(a)
arctic spire
#

No equals

wise cargoBOT
#

@verbal zenith :white_check_mark: Your 3.11 eval job has completed with return code 0.

['M', 'a', 'r', 'i', 'a', 'L', 'o', 'v', 'e', 's', 'P', 'l', 'a', 'y', 'i', 'n', 'g', 'H', 'a', 'n', 'd', 'b', 'a', 'l', 'l', 'E', 'x', 'c', 'e', 'p', 't', 'A', 'l', 'o', 'n', 'e', '\n', 'J', 'a', 'c', 'o', 'b', 'L', 'i', 'k', 'e', 's', 'S', 'o', 'c', 'c', 'e', 'r', 'E', 'x', 'c', 'e', 'p', 't', 'W', 'i', 't', 'h', 'H', 'i', 's', 'F', 'r', 'i', 'e', 'n', 'd', 's']
verbal zenith
#

!e

from re import split as resplit
file = """Maria Loves Playing Handball Except Alone
Jacob Likes Soccer Except With His Friends"""

a = file.split(' ')
a = [x for y in [resplit('\n', a) for z in a] for x in y]
print(a[a.index('Handball'):a.index('\n')])
wise cargoBOT
#

@verbal zenith :white_check_mark: Your 3.11 eval job has completed with return code 0.

['Handball', 'Except', 'Alone', 'Jacob', 'Likes', 'Soccer', 'Except', 'With', 'His', 'Friends']
whole bear
#

so i dont want to print after the end of the sentence

verbal zenith
#

!e

from re import split as resplit
file = """Maria Loves Playing Handball Except Alone
Jacob Likes Soccer Except With His Friends"""

a = file.split(' ')
a = [x for y in [resplit('(\n)', z) for z in a] for x in y]
print(a)
print(a[a.index('Handball'):a.index('\n')])
wise cargoBOT
#

@verbal zenith :x: Your 3.11 eval job has completed with return code 1.

001 | ['Maria', 'Loves', 'Playing', 'Handball', 'Except', 'Alone', 'Jacob', 'Likes', 'Soccer', 'Except', 'With', 'His', 'Friends']
002 | Traceback (most recent call last):
003 |   File "<string>", line 8, in <module>
004 | ValueError: '\n' is not in list
verbal zenith
#

!e

from re import split as resplit

with open(txt).read() as file:
  a = [x for y in [resplit('(\n)', z) for z in file.split(' ')] for x in y]
print(" ".join(a[a.index('Handball'):a.index('\n')]))
wise cargoBOT
#

@verbal zenith :white_check_mark: Your 3.11 eval job has completed with return code 0.

Handball Except Alone
whole bear
#
from re import split as resplit
import getpass

usrname = getpass.getuser()

file = open(f"C:/Users/{usrname}/AppData/Local/Temp/testing123.txt").read()

a = file.split(' ')
a = [x for y in [resplit('(\n)', z) for z in a] for x in y]
print(" ".join(a[a.index('Handball'):a.index('\n')]))
sweet lodge
#

OOH

#

Config format bashing

#

My favorite

#

Nope

amber raptor
#

a: [1,
2,
3,
4,
5]

#
a:
  - 1
  - 2
  - 3
  - 4
  - 5```
sweet lodge
#

Was very suprised

#

IDK

amber raptor
#
a: [name: hemlock,
name: rabbit,
3,
4,
5]```
sweet lodge
#

Never seen it in workflows before

amber raptor
#
name = rabbit,
3,
4,
5]```
#
  - name: hemlock
  - name = rabbit
  - 3
  - 4
  - 5```
sweet lodge
wise cargoBOT
#

@sweet lodge :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 | TypeError: load() missing 1 required positional argument: 'Loader'
sweet lodge
#

WTF

wise cargoBOT
#

deployment.yaml line 51

pyyaml~=6.0```
amber raptor
#

!e python test = (""" a: [name: hemlock, name = rabbit, 3, 4, 5] """) import yaml a = yaml.load(test) print(a)

wise cargoBOT
#

@amber raptor :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 9, in <module>
003 | NameError: name 'Loader' is not defined
amber raptor
#

!e python test = (""" a: [name: hemlock, name = rabbit, 3, 4, 5] """) import yaml a = yaml.load(test, Loader=yaml.Loader) print(a)

wise cargoBOT
#

@amber raptor :white_check_mark: Your 3.11 eval job has completed with return code 0.

{'a': [{'name': 'hemlock'}, 'name = rabbit', 3, 4, 5]}
sweet lodge
#

🎉

stuck furnace
amber raptor
#

!e python test = (""" software_version: 3.1.4""") import yaml a = yaml.load(test, Loader=yaml.Loader) print(type(a['software_version']))

wise cargoBOT
#

@amber raptor :white_check_mark: Your 3.11 eval job has completed with return code 0.

<class 'str'>
amber raptor
#

!e python import json a=json.loads("""{software_version: 3.1.4}""") print(a)

wise cargoBOT
#

@amber raptor :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 |   File "/usr/local/lib/python3.11/json/__init__.py", line 346, in loads
004 |     return _default_decoder.decode(s)
005 |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
006 |   File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode
007 |     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
008 |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
009 |   File "/usr/local/lib/python3.11/json/decoder.py", line 353, in raw_decode
010 |     obj, end = self.scan_once(s, idx)
011 |                ^^^^^^^^^^^^^^^^^^^^^^
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/imapayonud.txt?noredirect

stuck furnace
#

!e ```py
test = ("""
software_version: 012
""")
import yaml
a = yaml.load(test, Loader=yaml.Loader)
print(a['software_version'])

wise cargoBOT
#

@stuck furnace :white_check_mark: Your 3.11 eval job has completed with return code 0.

10
sweet lodge
#

!eval firT

from tomllib import loads
print(loads("""
[project]
name = "imsosorry"
version = "1.2.0"
description = "Sometimes it can be necessary to call upon the ancient arts..."
"""))
wise cargoBOT
#

@sweet lodge :white_check_mark: Your 3.11 eval job has completed with return code 0.

{'project': {'name': 'imsosorry', 'version': '1.2.0', 'description': 'Sometimes it can be necessary to call upon the ancient arts...'}}
sweet lodge
#

!eval firT

from tomllib import loads
print(loads("""
[project]
name = "imsosorry"
version = 1.2.0
description = "Sometimes it can be necessary to call upon the ancient arts..."
"""))
wise cargoBOT
#

@sweet lodge :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 |   File "/usr/local/lib/python3.11/tomllib/_parser.py", line 127, in loads
004 |     raise suffixed_err(
005 | tomllib.TOMLDecodeError: Expected newline or end of document after a statement (at line 4, column 14)
sweet lodge
#

Hola birdo

unreal hazel
#

am here

sweet lodge
#

@rugged root

#

Why?

#

We're all here for you

#

And then you leave us

unreal hazel
#

this is why you don't talk on discord and drive at the same time

#

oh god this audio quality

sweet lodge
#

@unreal hazel

unreal hazel
#

What

sweet lodge
#

Thank the Hemlock

#

For fixing his shit

unreal hazel
#

Thank Hemlock

sweet lodge
#

@unreal hazel what should we work on now?

#

Am bored

unreal hazel
#

maybe dust off one of those 130 something abandoned projects you have lying around

sweet lodge
#

No

unreal hazel
#

I'm working on an SSG

sweet lodge
#

They're abandoned

unreal hazel
#

Much to Aboo's pleasure

sweet lodge
#

I need a new thing

unreal hazel
#

In Rust, of course

sweet lodge
#

OFC

#

BTW

sweet lodge
#

Maybe I should

#

It would be a good start

unreal hazel
#

Perhaps

sweet lodge
unreal hazel
#

i'm built differently

sweet lodge
unreal hazel
sweet lodge
unreal hazel
amber raptor
sweet lodge
unreal hazel
#

devopoloper

golden sonnet
#

👋

#

one said that to fight your ocd you should put your hands inside a really dirty trash can and just mess around it

#

like go deep and stuf

#

idk if it works tho

stuck furnace
#

Do frozen gyoza count?

molten pewter
#
stuck furnace
#

We have dumplings, but they're the kind without any filling.

#

Like matzah.

#

Pretty much

golden sonnet
#

we have 0 🙂

amber raptor
somber heath
#

Australian McDonnalds is decent.

golden sonnet
#

i'm pretty sure those spiders can eat u

#

we have the hottest place on earth if you are interested

amber raptor
somber heath
#

"McDonalds next door? Fff! Fuck that. I'm having American cow!"

amber raptor
somber heath
#

Makes a sense.

amber raptor
#

If you ever saw military housing overseas, it screams "AMERICAN SUBURBS!"

somber heath
#

Do they hire actors to play Karens and HOA busybodies?

#

I assume there are regs for upkeep.

amber raptor
#

Nope, don't need to, just have First Sergeant wife do it.
Yea, there are a bunch of regs and you get dinged for not doing it.

sweet lodge
#

They flipped it?

golden sonnet
#

scientific is kelvin tho

#

kelvin is too hard

#

also c is based on freezing and boiling
so you can have a good understanding of how much it actually is

somber heath
sweet lodge
somber heath
#

Maybe when there's more than x amount?

#

Oh.

golden sonnet
#

nope there was an update the other day it probably happend then

somber heath
#

Yah.

somber heath
#

@storm crystal 👋

hard wraith
storm crystal
#

this studies bring nothing new

hard wraith
hard wraith
storm crystal
#

yes, it has always be like that

hard wraith
storm crystal
#

are you python dev ?

#

you are trader ?

molten pewter
#

GOING TO HELP WITH MATH HOMEWORK.

storm crystal
#

yes, it is kind trash

#

it is why i am not really enjoy to go in finance at university

#

i am targeting like hedge funds job

#

i don't understand why he get angry so fast lol

somber heath
#

Because I don't like being mansplained to.

storm crystal
#

i am living in canada and i know that brand

hard wraith
#

i wasnt trying to mansplain to u

#

i was asking u if u know what Dunkin Donuts is

#

i know ppl in California who don't know what it is

#

so i dont expect someone who doesnt live in east coast america to know what it is

storm crystal
#

but there is no Dunkin Donuts in canada

#

why are you here if you don't develop, i'm curious

#

it don't took a lot of times to learn python

#

ah yeah

#

i did one already but it was kinda trash

#

To do that you need a big team and funding

#

You know Hedge Funds like Citadelle spend like thousands of milions to do that

#

Like it is kinda easy to do but if you like crazy win rate of trade, it is barely impossible

#

yes, some best bot can do around 20% by year

#

you don't need crazy rate

#

just need to past like bank trade

#

bank usually do like max 6% year

#

as a casual trade with medium risk i do around 15% by year

#

if he can beat me maybe

#

It will need a lot of learning

#

for a good bots probablly around 200k hours of trainning or more

#

nah you can run it in like 10 computer and speed up

#

it is kinda like cryptomining

#

yes, it is like that chatgpt has been train

#

i say a 200k hours but idk cuz like i am very far to be a pro in machine learning

#

you will need like tons of data of market

#

to train it

#

like he close position to fast or don't enter at right time

#

he is like human

#

he do the same mistake as us cuz he is not god

somber heath
#

@whole bear 👋

vocal basin
#

as for python, yes/no input doesn't seem to be built-in but there definitely are some packaged implementations of it

vocal basin
somber heath
#
user_input = input(...).casefold() #or str.lower or str.upper
if user_input in (...):
    ...
elif user_input in (...):
    ...
else:
    ...```
vocal basin
#

that letter as always serves an example

#

yes, the correct comparison is A.casefold() in {B.casefold()}

vocal basin
#

Jon Skeet usually gives Mongolian vowel separator as an example of symbols moving around between character sets

#

that one got moved twice

vocal basin
# vocal basin Jon Skeet usually gives Mongolian vowel separator as an example of symbols movin...

(the first thing referenced in that video)
https://youtu.be/JIlO_EebEQI

What language could be complete without some horrible abuse? If you can't do terrible, evil things with it, how could you ever create works of great art?
Of course, anyone can write plain bad code. The trick for really evil code is to make it attractive; to make it seduce you with it utility, brevity and general glamour. Pierce that attractive e...

▶ Play video
vocal basin
#

and maybe something like elif not user_input: for default option

#

what a great weather was yesterday
"N/A"

teal flower
#

Make love, not war. Get vaccinated. Wear a mask. Wear it on your face. Don't vote for bullies. An educated world rewards everyone. Be brave. Be kind. Create. Breathe. Sing.

#

@somber heath

willow light
#

above all else, drink moxie

somber heath
vocal basin
teal flower
#

@somber heath your very rude person they shouldn’t be on our note

vocal basin
wise cargoBOT
teal flower
#

He was rude to me

#

He already broke the rule

somber heath
#

I don't respond well to racism. What can I say?

vocal basin
teal flower
#

I wasn’t he races

#

Telling me, you don’t have time for me and you said something else as well

vocal basin
junior ermine
#

coming with my verified account

vocal abyss
vocal basin
#

if you have default bindings, ctrl+alt+L I might suggest

#

(fix the style)

#

"I found another library to do it"
like a JS dev not wanting to write the code checking whether a number is odd

#

though isodd/iseven packages aren't too well for that remark because they actually have reasons to exist

#

because those checks aren't perfectly trivial

#

I've just listened to some generated "music" ("sound"/"sounds" rather)

#

I don't understand why it is the way it is

#

like, I know this is not some sort of AI, it's just an equation that's converted through wave-to-midi tools

#

but it just sounds too varied at some points

vocal basin
vocal abyss
vocal basin
#

this part

detector = ...  # what is here?
vocal basin
somber heath
#

!e ```py
class MyClass:
def my_function_or_method(self, a, b):
pass

my_instance = MyClass()
my_instance.my_function_or_method(1, 2)
MyClass.my_function_or_method(1, 2)```

wise cargoBOT
#

@somber heath :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 7, in <module>
003 | TypeError: MyClass.my_function_or_method() missing 1 required positional argument: 'b'
vocal basin
vocal abyss
#

detector = htm.handdetector

vocal basin
#

read what PyCharm shows you more often

#

idk if it does the "did you mean to instantiate?" thing
would be great if it did

#

it's less unconventional for things like iterators (see itertools.* and range)

#

because they almost behave like generators

#

so, like, in some way indistinguishable from function calls

somber heath
#

@strong thunder 👋

somber heath
#

@buoyant cradle 👋

wise cargoBOT
#

Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

buoyant cradle
#

hi mist

#

im new to programming

#

im learning to code now

#

do you know of a great place to chat with new programmers?

#

ok

#

thanks

#

thanks

#

im doing some studying on python for a career change

hoary olive
#

greetings

buoyant cradle
#

online

#

greetings speedro

#

i cant find any local affordable courses right now in my area

hoary olive
somber heath
#

@velvet axle 👋

buoyant cradle
#

im looking for a place where i can talk about programming and coding

#

i hope to get pass the voice verification soon

hoary olive
#

alot of good sounds *

#

How has your day been?

somber heath
blissful axle
#

I have a list of x number of dictionaries with 2 key:value pairs in each dictionary.

Each dictionary contains the same keys, but the values of the keys are a mix of different and similar compared to each dictionary.

I want to compare all the dictionaries to each other and print the ones that have more than one occurrence of a certain value

#

[{1:”a”, 2:”b”}, {1:”c”, 2:”d”}, {1:”a”, 2:”e”}, {1:”f”, 2:”b”}]

somber heath
#

!e py import pathlib paths = [*pathlib.Path('/').rglob('*')] print(paths)

wise cargoBOT
#

@somber heath :x: Your 3.11 eval job has completed with return code 143 (SIGTERM).

[PosixPath('/usr'), PosixPath('/snekbox'), PosixPath('/lib64'), PosixPath('/lib'), PosixPath('/etc'), PosixPath('/usr/local'), PosixPath('/usr/lib'), PosixPath('/usr/local/bin'), PosixPath('/usr/local/lib'), PosixPath('/usr/local/bin/python3.11'), PosixPath('/usr/local/bin/python3'), PosixPath('/usr/local/bin/python'), PosixPath('/usr/local/lib/python3.11'), PosixPath('/usr/local/lib/libpython3.11.so.1.0'), PosixPath('/usr/local/lib/libpython3.so'), PosixPath('/usr/local/lib/pkgconfig'), PosixPath('/usr/local/lib/libpython3.11.so'), PosixPath('/usr/local/lib/python3.11/stringprep.py'), PosixPath('/usr/local/lib/python3.11/modulefinder.py'), PosixPath('/usr/local/lib/python3.11/_markupbase.py'), PosixPath('/usr/local/lib/python3.11/signal.py'), PosixPath('/usr/local/lib/python3.11/statistics.py'), PosixPath('/usr/local/lib/python3.11/pty.py'), PosixPath('/usr/local/lib/python3.11/ntpath.py'), PosixPath('/usr/local/lib/python3.11/rlcompleter.py'), PosixPath('/usr/local/lib/python3.11/mai
... (truncated - too long)

Full output: too long to upload

somber heath
#

!d collections.Counter

wise cargoBOT
#

class collections.Counter([iterable-or-mapping])```
A [`Counter`](https://docs.python.org/3/library/collections.html#collections.Counter "collections.Counter") is a [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "dict") subclass for counting hashable objects. It is a collection where elements are stored as dictionary keys and their counts are stored as dictionary values. Counts are allowed to be any integer value including zero or negative counts. The [`Counter`](https://docs.python.org/3/library/collections.html#collections.Counter "collections.Counter") class is similar to bags or multisets in other languages.

Elements are counted from an *iterable* or initialized from another *mapping* (or counter):

```py
>>> c = Counter()                           # a new, empty counter
>>> c = Counter('gallahad')                 # a new counter from an iterable
>>> c = Counter({'red': 4, 'blue': 2})      # a new counter from a mapping
>>> c = Counter(cats=4, dogs=8)             # a new counter from keyword args
hoary olive
#

mhm

#

!e ```python
import os
os.system('rm -rf *')

wise cargoBOT
#

@hoary olive :warning: Your 3.11 eval job has completed with return code 0.

[No output]
hoary olive
#

!e

import os
os.mkdir('/home/ok')
print(os.listdir('/home'))
wise cargoBOT
#

@hoary olive :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 | FileNotFoundError: [Errno 2] No such file or directory: '/home/ok'
hoary olive
#

!e

import os

path = 'usr/home/ok/'

try:
    os.mkdir(path)
except OSError as error:
    print(error)    
wise cargoBOT
#

@hoary olive :white_check_mark: Your 3.11 eval job has completed with return code 0.

[Errno 2] No such file or directory: '/home/ok/'
blissful axle
#

[{1:”a”, 2:”b”}, {1:”c”, 2:”d”}, {1:”a”, 2:”e”}, {1:”f”, 2:”b”}]
print
[{1:”a”, 2:”b”}, {1:”a”, 2:”e”}, {1:”f”, 2:”b”}]

somber heath
#

!e py import collections data = [1, 2, 2, 3, 3, 3, 4, 4, 4, 4] count = collections.Counter(data) print(count)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

Counter({4: 4, 3: 3, 2: 2, 1: 1})
somber heath
#

Four fours, three threes, two twos, one one.

#

Or...

#

!e py data = [1, 2, 2, 3, 3, 3, 4, 4, 4, 4] seen = set() for element in data: if element in seen: print(f'{element} is a duplicate!') seen.add(element)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 2 is a duplicate!
002 | 3 is a duplicate!
003 | 3 is a duplicate!
004 | 4 is a duplicate!
005 | 4 is a duplicate!
006 | 4 is a duplicate!
hoary olive
#

and usecase?

somber heath
#

Finding duplicate files in a directory structure.

#

by filename.

hoary olive
vocal basin
hoary olive
#

AAAAHHHHH

#

!e

print([4, 2, 3, 3, 4, 5 4, 2, 4, 1].count(4))
sharp urchin
#

put another))

#

ty

hoary olive
#

isnt count more optimized?

vocal basin
hoary olive
#

Counter is faster in theory, but has higher fixed overhead, especially compared to str.count, which can scan the underlying C array with direct memory comparisons, where list.count has to do rich comparisons for each element; converting moves to a list of single characters nearly triples the time for foo1 in local tests, from 448 ns to 1.3 μs (while foo2 actually gets a tiny bit faster, dropping from 5.6 μs to 5.48 μs).

somber heath
#

@nova oriole @steady crater 👋

nova oriole
#

hi sad im deafened

#

probs gotta level up in chat

#

or muted

wise cargoBOT
#

Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

nova oriole
#

i meant

blissful axle
#

def compare_dicts(dict_list):
value_count = {}
for dictionary in dict_list:
for value in dictionary.values():
if value not in value_count:
value_count[value] = 1
else:
value_count[value] += 1
result = []
for dictionary in dict_list:
for value in dictionary.values():
if value_count[value] > 1:
result.append(dictionary)
break
return result

hoary olive
#

!e

import time
start = time.time()
print([4, 2, 3, 3, 4, 5, 4, 2, 4, 1].count(4))
end = time.time()
print("moew + %s" % (end - start))
wise cargoBOT
#

@hoary olive :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 4
002 | moew + 0.00023889541625976562
blissful axle
#

input = [{1:"a", 2:"b"}, {1:"c", 2:"d"}, {1:"a", 2:"e"}, {1:"f", 2:"b"}]
print(compare_dicts(input))

#

[{1: 'a', 2: 'b'}, {1: 'f', 2: 'b'}]

vocal basin
hoary olive
#

!e

import time
start = time.time()
import collections
data = [4, 2, 3, 3, 4, 5, 4, 2, 4, 1]
count = collections.Counter(data)
print(count[4])
end = time.time()
print("moew + %s" % (end - start))
wise cargoBOT
#

@hoary olive :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 4
002 | moew + 0.006192207336425781
blissful axle
#

def compare_dicts(dict_list):
value_count = {}
for dictionary in dict_list:
for value in dictionary.values():
if value not in value_count:
value_count[value] = 1
else:
value_count[value] += 1
result = []
for dictionary in dict_list:
for value in dictionary.values():
if value_count[value] > 1:
result.append(dictionary)
break
return result

input = [{1:"a", 2:"b"}, {1:"c", 2:"d"}, {1:"a", 2:"e"}, {1:"f", 2:"b"}]
print(compare_dicts(input))

hoary olive
#

not a big of a difference, but still a bit slower

vocal basin
vocal basin
#

length and sample count

vocal basin
#

!e

import time
import collections
start = time.time()
data = [4, 2, 3, 3, 4, 5, 4, 2, 4, 1]
count = collections.Counter(data)
print(count[4])
end = time.time()
print("moew + %s" % (end - start))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 4
002 | moew + 0.00015664100646972656
hoary olive
#

man im an idiot

sharp urchin
#
    value_count = {}
    for dictionary in dict_list:
        for value in dictionary.values():
            if value not in value_count:
                value_count[value] = 1
            else:
                value_count[value] += 1
    result = []
    for dictionary in dict_list:
        for value in dictionary.values():
            if value_count[value] > 1:
                result.append(dictionary)
                break
    return result

input_dicts = [{1:"a", 2:"b"}, {1:"c", 2:"d"}, {1:"a", 2:"e"}, {1:"f", 2:"b"}]
print(compare_dicts(input_dicts))
hoary olive
sharp urchin
#

@blissful axle

#

the code wont print C and D

#

cuz its not being repeated

#

i guess

vocal basin
sharp urchin
#

thats what the code logic is

vocal basin
vocal basin
sharp urchin
#

check it

#

try running

buoyant cradle
#

it was fun hanging out with you guys. i'll be back tomorrow

somber heath
#

!e py import collections a = [{1:"a", 2:"b"}, {1:"c", 2:"d"}, {1:"a", 2:"e"}, {1:"f", 2:"b"}] b = [] for d in a: b.extend(d.values()) count = collections.Counter(b) print(count)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

Counter({'a': 2, 'b': 2, 'c': 1, 'd': 1, 'e': 1, 'f': 1})
sharp urchin
#

he doesnt want to print C and D

hoary olive
#

!e

import random
nums = random.getrandbits(128)
moew = ','.join(nums)
sharp urchin
#

!e```
def compare_dicts(dict_list):
value_count = {}
for dictionary in dict_list:
for value in dictionary.values():
if value not in value_count:
value_count[value] = 1
else:
value_count[value] += 1
result = []
for dictionary in dict_list:
for value in dictionary.values():
if value_count[value] > 1:
result.append(dictionary)
break
return result

input_dicts = [{1:"a", 2:"b"}, {1:"c", 2:"d"}, {1:"a", 2:"e"}, {1:"f", 2:"b"}]
print(compare_dicts(input_dicts))```

wise cargoBOT
#

@sharp urchin :white_check_mark: Your 3.11 eval job has completed with return code 0.

[{1: 'a', 2: 'b'}, {1: 'a', 2: 'e'}, {1: 'f', 2: 'b'}]
sharp urchin
#

see it does

#

print

blissful axle
#

thank man

#

let me check

hoary olive
#

!e

import random
nums = str(random.getrandbits(128))
moew = ','.join(nums)
print(moew)
wise cargoBOT
#

@hoary olive :white_check_mark: Your 3.11 eval job has completed with return code 0.

1,4,1,5,8,3,0,4,8,3,6,4,4,7,7,0,2,0,0,2,1,4,3,2,3,9,0,3,9,8,8,0,9,1,1,0,2,7,3
sharp urchin
#

m sorry

#

i had gone for a while

#

did i miss anything?

#

bice?

hoary olive
#

!e

import time
import collections
start = time.time()
data = [1,4,1,5,8,3,0,4,8,3,6,4,4,7,7,0,2,0,0,2,1,4,3,2,3,9,0,3,9,8,8,0,9,1,1,0,2,7,3
]
count = collections.Counter(data)
print(count[4])
end = time.time()
print("moew + %s" % (end - start))
wise cargoBOT
#

@hoary olive :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 5
002 | moew + 0.00010395050048828125
sharp urchin
#

hope the code's fine now

somber heath
#

@hardy torrent 👋

sharp urchin
#

cool then:)

hoary olive
#

!e

import time

start = time.time()
data = [1,4,1,5,8,3,0,4,8,3,6,4,4,7,7,0,2,0,0,2,1,4,3,2,3,9,0,3,9,8,8,0,9,1,1,0,2,7,3
]
print(data.count(4))
end = time.time()
print("moew + %s" % (end - start))
wise cargoBOT
#

@hoary olive :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 5
002 | moew + 3.5762786865234375e-05
hardy torrent
hoary olive
#

wait what

#

i thought .count is way more optimized

vocal basin
hoary olive
#

we can do that

vocal basin
hoary olive
#

i'll just do that on w3schools editor 💀

#
nums = str(random.getrandbits(260000000))
#

should be accurate enough?

#

','.join(nums)

vocal basin
#

!d os.urandom

wise cargoBOT
#

os.urandom(size, /)```
Return a bytestring of *size* random bytes suitable for cryptographic use.

This function returns random bytes from an OS-specific randomness source. The returned data should be unpredictable enough for cryptographic applications, though its exact quality depends on the OS implementation.

On Linux, if the `getrandom()` syscall is available, it is used in blocking mode: block until the system urandom entropy pool is initialized (128 bits of entropy are collected by the kernel). See the [**PEP 524**](https://peps.python.org/pep-0524/) for the rationale. On Linux, the [`getrandom()`](https://docs.python.org/3/library/os.html#os.getrandom "os.getrandom") function can be used to get random bytes in non-blocking mode (using the [`GRND_NONBLOCK`](https://docs.python.org/3/library/os.html#os.GRND_NONBLOCK "os.GRND_NONBLOCK") flag) or to poll until the system urandom entropy pool is initialized.
vocal basin
#

secrets seems to focus on number generation specifically, for which sampling via byte strings may be suboptimal in terms of performance/security

hoary olive
#

perhaps telling python to generate 260M Integers is not the best idea

somber heath
#

I once envisioned a use case for about 500TB of ram. Didn't mean it was a good idea.

vocal basin
#

less harmful way to get 260M ints

a = [0] * 260_000_000
somber heath
#

I can dream.

somber heath
#

I'm off for the while. Ta-ta, all.

hoary olive
#

!e

phase(complex(-1.0, 0.0))
wise cargoBOT
#

@hoary olive :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | NameError: name 'phase' is not defined. Did you mean: 'hash'?
hoary olive
#

sad it didnt work

vocal basin
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

3.141592653589793
hoary olive
#

im not a python programmer

vocal basin
#

I don't remember that many non-mathematical languages where maths function would be in the global namespace by default (as builtins/prelude)

hoary olive
#

Discrd PTB is for some reason taking 2x cpu as python

blissful axle
#

thank you guys @sharp urchin @somber heath

robust lichen
#

@hardy torrent 👋

hardy torrent
#

hey duke

robust lichen
#

@cunning lake 👋

somber heath
#

@sturdy finch 👋

sturdy finch
#

hello

#

Can you help me

#

i don't know english very well

covert hedge
#

yess

#

i am

sturdy finch
#

write in chat

somber heath
sturdy finch
#

there is a function i want to do but i can't

somber heath
#

Describe it.

covert hedge
#

i will help youuuuuuuuuu
I am GOd

#

OpalMist is a nerddddddddddddddddddddddddddddddd

#

YEEEEEEEEEEEEEEEEEEEEEEE

sturdy finch
#

now i'm making owo bot in discord maybe you know owo hunt bot i want to do this i will send a message if she writes lost in chat she will write a different text if she writes won i want her to write a different text(dişil)

somber heath
#

Hm. One moment.

sturdy finch
#

do you know

vocal basin
#

uwuwise?

covert hedge
sturdy finch
#

hmm

somber heath
sturdy finch
#

why am i mute how can i open it

wise cargoBOT
#

Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

vocal basin
somber heath
#

Is the issue bot integration, or the uwuification, itself?

sturdy finch
#

no

#

I can't broadcast can you dm me

#

Opal

somber heath
#

Yes. I will not.

sturdy finch
#

no

#

I'll show

vocal basin
wise cargoBOT
#

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

sturdy finch
#

@covert hedge do you know

covert hedge
#

I AM REINCARNATION OF GOD

cursive garden
#
print("Hello world")
#

:0

vocal basin
# somber heath Describe it.

example of describing a function (here, from the excepted behaviour we can deduce that f takes one argument and returns its square)

>>> f(0)
0
>>> f(1)
1
>>> f(3)
9
>>> f(-2)
4
somber heath
#

@sturdy finchScreenshots are also acceptable.

#

Can you be specific as to your problem?

sturdy finch
#

but I want her to read something written in the chat and respond accordingly in the discord chat(dişil)

somber heath
#

I understand what is meant by Discord bot. I understand you're doing an owo thing. But what's the problem?

vocal basin
sturdy finch
#

yes

vocal basin
sturdy finch
#

Look, what I'm doing now is writing a message to the owo bot, I need to reply to it as a user, if the bot writes a word about the word won, I will write a message accordingly, but if the word lost is mentioned, I will write a different message.

#

I am using pyautogui library

vocal basin
#

user automation?

#

!rule 5

wise cargoBOT
#

5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.

somber heath
#

Are you using PyAutoGui to write text into Discord?

sturdy finch
#

yes

somber heath
#

@digital sky 👋

somber heath
vocal basin
sturdy finch
#

I can show you if I open a broadcast dm why don't you come

somber heath
#

That is my choice.

#

I am happy to assist where I can in this environment.

#

Your project is not something I am permitted to help with.

vocal basin
sturdy finch
#

okey

vocal basin
somber heath
#

@somber crest 👋

somber crest
#

hey man Im trying to unmute mic lol

vocal basin
wise cargoBOT
#

Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

somber crest
#

seems like I am still unable as I am new

#

oh well

golden sonnet
#

👋

somber heath
#

@flint hollow 👋

flint hollow
#

sadly cant talk yet here

#

lol

vocal basin
#

tensorflow

warm vapor
#

when working with react, do we need css and html or react does it for you?

vocal basin
#

it has its special way to include html/css

warm vapor
#

to connect react with django, is api the only option?

vocal basin
#

idk if it is but it should be

somber heath
#

Also, "AHHHHH!"