#voice-chat-text-0

1 messages · Page 684 of 1

ripe torrent
#

India

#

and you mate ?

stuck furnace
#

UK

ripe torrent
#

I was planning to apply for nottingham but broke af now

stuck furnace
#

@past elk quicksort chooses a pivot, puts all the elements less than the pivot to the left of it, and all the elements greater than the pivot to the right of it, then recursively sorts the left and right sub-arrays.

#

Erm, you can pick the first element, but then you have problems for already-sorted arrays.

wise glade
#

does this pattern re.compile(rf'{name}o?\d*?') mean, name + o(maybe) + integers(0 or more, maybe)?

stuck furnace
#

You can pick a random element.

#

If you pick the first or last element, the algorithm becomes O(n^2) for arrays that are already in sorted order, because all of the elements get placed on one side of the pivot each time.

whole bear
stuck furnace
#

Another way to pick the pivot is to take the median of the first, middle, and last element.

wise glade
#

😂 a google review about nottingham trent -> "Least helpful student service and rude staff."

stuck furnace
#

Yep, O(n log n) in the average case.

#

But O(n^2) in the worst case.

wise glade
#

but insertion, bubble, selection all give O(n^2) by default, don't they?

ripe torrent
stuck furnace
#

👍

whole bear
#

wtf

#

is tere a financial aid or somethin or u had funds?

#

high school?

#

daamn

whole bear
#

why suprised

#

nah it just that it was the age i started learning programming

#

and i still kinda suck

ripe torrent
#

you can have sponsors though.

whole bear
#

i am beginner

whole bear
whole bear
wise glade
ripe torrent
#

sponsoring your financial aid obviously

whole bear
#

uhmmmm nope

#

gloomy !!

whole bear
ripe torrent
#

@whole bear Where you from ?

whole bear
#

why does it matter?

ripe torrent
#

I might have pointers if you are from India

whole bear
#

got it

stuck furnace
#

Erm, you can choose any value as the pivot.

#

Would you like an implementation?

ripe torrent
#

quicksort = lambda xs: (quicksort([i for i in xs[1:] if i < xs[0]] )
+ [xs[0]]
+ quicksort([i for i in xs[1:] if i >= xs[0]]))

#

from stackoverflow

#

first element as pivot

pliant heath
#

Is anyone familiar with pyautogui by chance?

whole bear
#

Hi

#

Hello

#

Hey

#

Yo

#

Wassup

pliant heath
#

Don't spam or you will never be voice verified

past elk
stuck furnace
#

Erm, I think so.

whole bear
#

🤣😆

#

I am not spamming the same message

#

I got banned before

#

Lmao

ripe torrent
#

!ban Hitesh

whole bear
#

🤣

ripe torrent
#

chill out man, it getting into my nerves

whole bear
#

Alright

#

Np

#

No spamming

pliant heath
#

Trying to bypass the voice verified thing by spamming messages separately will prolong your requirements, or possibly get you perma muted

whole bear
#

K

#

Thnx

smoky burrow
#

!mute 505905722987380736 3d spamming across multiple channels

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @whole bear until 2020-12-02 13:06 (2 days and 23 hours).

stuck furnace
#

@past elk Shell sort?

#

She sell shellsorts on the...

pliant heath
#

How long have you guys been programming in python? I started about 4 days ago, haha

ripe torrent
#

4 years LOL

stuck furnace
#

That is the question 😄

wise glade
#

how do you parallelize merge sort? first time I've heard about it, and kinda wanna know badly

#

i mean, we have to keep the track of the sorted subarrays, don't we

#

so maybe Queue from multiprocessing module

somber heath
#

I am a shell sorter. I have a shelf of sorted shells and a shelf of unsorted shells. I am a shell sorter.

stuck furnace
#

Have you heard of bogosort?

#

Just randomly shuffle the array until it is sorted.

wise glade
#

radix sort

ripe torrent
#

threading subproblems and joining probably ?

wise glade
#

it sorts all kinds of bases, i.e integers, hexadecimals, octal numbers

pliant heath
#

Is there like a snippet of code someone has to help me understand text recognition on screen? Doing this for a simple game bot im working on for a singleplayer game

balmy nymph
stuck furnace
#

Is it Pascal?

pliant heath
#

im very very new to coding entirely, kinda getting a late start but ive made my first game bot recently so just trying to make it better. Never really used github asides from just a simple download screen when finding resources

past elk
stuck furnace
#

Hmm, I think if it were a cocktail-shaker-sort the sorted elements would build up at both ends?

#

Like, there would be two triangles?

#

Nah

#

But do you see what I mean about it building up the elements at both ends?

ripe torrent
#

is it counting sort ?

stuck furnace
#

Like after the nth iteration, the n smallest and n largest elements are in their correct positions.

wise glade
#

if anyone knows some regex, can u help me please in help-vanadium

stuck furnace
#

Sure

whole bear
#

you gotta show some mercy to keyb

stuck furnace
#

See ya

sick cloud
#

bye

ripe torrent
#

cya

#

anyone completed breakthecode.tech ?

sick cloud
#

never heard of it

ripe torrent
#

take a look at it, people were on fire

sick cloud
#

nope

ripe torrent
#

It is out of the body experience

sick cloud
#

hello @whole bear

whole bear
#

Hi

whole bear
#

Do you know how to

#

Ah

sick cloud
whole bear
#

Xd

#

Wait

sick cloud
#

and why did u leave the vc ?

whole bear
#

I'm on the bus

sick cloud
whole bear
#

home

sick cloud
#

where r u comming from ?

whole bear
#

Supermarket

#

I gotta go.

sick cloud
#

alr

#

be online later cuz why not

whole bear
#

Ok

versed sapphire
#

lol

#

what are you guys talking about

#

hi

sick cloud
#

i'm justing listening to songs

#

hello @@neon sleet

versed sapphire
#

Music?

sick cloud
#

yess

versed sapphire
#

wa was that

sick cloud
#

a song

fierce saddle
#

red team

sick cloud
#

1/100,000 probability

pure path
#

@icy axle your stream gonna attract a lot of ppl

#

lol

icy axle
#

Hahah

#

Probably

#

Just felt like streaming while I was just sitting there doing some coding

pure path
#

nice

#

what u making

icy axle
#

bestpy

#

Just a fun little project

pure path
#

to find out what's best lol

icy axle
#

Hahah yeah

#

It's quite fun

neon sleet
#

his audio is lagging?

icy axle
#

Mine?

whole notch
icy axle
#

Lol

whole notch
#

We cant hear you @icy axle

icy axle
#

Welp

karmic musk
#

what are you making?

icy axle
#

bestpy

#

This thing

sinful bramble
#

vester is streaming yehey

#

maybe i should stream 🤔. nah.

neon sleet
#

what would you stream?

icy axle
whole notch
#

Yeah Its disabled.

sinful bramble
neon sleet
#

lol

#

btw vester how are you streaming without the video role?

icy axle
#

I'm staff

neon sleet
#

Can helpers stream aswell?

balmy nymph
#

He also is a cucumber, and I believe this is more important

#

Helpers are staff

icy axle
#

I'm always a cucumber

sinful bramble
#

hmmmm

#

so any reason why youre creating bestpy?

balmy nymph
#

I feel like someone has too much free time

sinful bramble
#

i dont have much, i just lurk while listening and answering assignments

icy axle
#

But bestpy is important

#

lol

sinful bramble
#

oh shooot it is already 11
goodnight guys

#

💤lemon_sleepy

icy axle
#

Night

pure path
#

ohh

wise glade
#

i keep hearing da dum sounds? why? people joining & leaving?

icy axle
#

Maybeee

sick cloud
#

do u know the Dank Memer (pls) bot ?

#

Plato

gentle flint
#

sed 's/regexp/replacement/g' inputFileName > outputFileName

icy axle
#

daenish

#

ä

#

ae = ä

whole rover
pure path
#

25 ppl wow

icy axle
#

æ = ä

steep garden
#

Does this server have like hackathon events or any speed building events?

icy axle
#

Hahahah

whole rover
#

@steep garden we have a code jam in the winter and summer and then host pyweek between those, check out https://pythondiscord.com/pages/events

steep garden
#

awesome, thanks @whole rover!

whole rover
steep garden
#

I failed :/

icy axle
#

I'm deeply sorry for my actions.

whole rover
#

yeah looks like you don't meet messages or activity blocks yet

#

which are the two easiest criteria to meet (you can't really speed up time for the 3 day member requirement, but you can chat here and in the other channels 😄)

steep garden
#

you can't really speed up time... yet

whole rover
#

hahahaha

candid venture
icy axle
#

You kind of can hahah

whole rover
#

cv2 nice

steep garden
whole rover
#

vester too busy streaming to read my gorgeous agenda WOW okay

pure path
#

lol

icy axle
#

I'm reading it soon D:

#

I think not joe is really cute though

whole rover
steep garden
#

Easier to slow time or speed up time? @icy axle

icy axle
#

Both hahah

dusky arch
#

lol

pure path
#

17 ppl

icy axle
steep garden
#

personally or physically haha?

icy axle
#

I don't wanna know. Joe is always bullying me

whole rover
#

hahahahaha

icy axle
#

See, I read it like a good boy

neon sleet
#

woohoo, its getting super hard to connect lol

icy axle
pure path
#

20 ppl

#

4 more left

neon sleet
#

thats insane

#

21

pure path
#

@steep garden in #bot-commands

swift valley
#

This is objectively false and you can't tell me otherwise

>>> best.phone
BlackBerry
icy axle
#

Hahahahahahaha

#

BlackBerry is always sometimes right

swift valley
#

Rename it to vestpy

pure path
#

lol

icy axle
#

Hahahah

pure path
#

@icy axle add Yale to the unviersity

mossy ember
#

@candid venture I love ur voice

candid venture
#

ty

sick cloud
#

hello

pure path
#

@balmy nymph what u streaming

balmy nymph
#

New pydis prject!

#

autoconfig

icy axle
pure path
#

ooh

balmy nymph
#

I might be streaming at very low res

#

Hold on

icy axle
#

It was blurry for me too

#

I generally stream at 15 FPS and 720p

balmy nymph
#

There?

pure path
#

yes

#

extremely better

icy axle
#

I hope that usually works with keeping it somewhat high res

#

What do you think of my res when streaming?

swift valley
#

If I try to stream Emacs with my LSP extensions I'm gonna expect it to just chug pretty bad

pure path
#

why?

#

does it take up that much ram

sick cloud
#

welcome back @hushed elm

hushed elm
#

heya guys

#

@sick cloud how's it going?

sick cloud
hushed elm
#

no, it sounds like a scam

#

lool

icy axle
#

It’s not

hushed elm
#

lootboxes and stuff

swift valley
#

@balmy nymph Close yer tabs

pure path
#

ye

hushed elm
#

what is it?

It’s not
@icy axle

pure path
#

why u got 10k tabs open

icy axle
#

A bot

balmy nymph
#

Laziness lol

sick cloud
hushed elm
#

haha

icy axle
hushed elm
balmy nymph
#

I legit don't undertsand this issue haha

sick cloud
hushed elm
#

aaaok

#

that sounds cool

balmy nymph
#
  File "<unknown>", line 355
    # type: msidbLocatorTypeRawValue + msidbLocatorType64bit
            ^
IndentationError: expected an indented block
```this doesn't make any sense
sick cloud
hushed elm
#

wtfff

hushed elm
sick cloud
sick cloud
balmy nymph
#

Before the indent that'd be?

hushed elm
#

ahaa

sick cloud
pure path
#

12 ppl and 11 are muted lol

sick cloud
balmy nymph
#

I have no idea what this code is from

pure path
#

@balmy nymph try ipython pip install ipython

#

its better than the normal command line python

sick cloud
#

probably unmuted by accident

balmy nymph
#

I could use ipython yeah

#

Alright, I'm liting the venv, that's why

#

Awesome

#

Did I really got the project name wrong

#

I totally did

#

I hate myself

tidal salmon
#

we're required to uphold certain moderation standards here, and the voice gate makes is the tradeoff we made to make moderating the voice chat feasible. In either case, please don't use the r word as we strive to use inclusive language here.

tidal salmon
sick cloud
#

hello @tranquil barn

balmy nymph
#

Actually

#

I am not haha

pure path
#

cause its fun

#

and it attracts people

balmy nymph
#

Doin' some pydis work

#

Python Discord

#

It is just a short

pure path
#

lol he gonna search it

balmy nymph
#

lmao

hushed elm
#

It's a short

#

ok?

balmy nymph
#

a short for Python Discord lmao

#

haha

#

@swift valley is pretty sleepy haha

cloud stratus
swift valley
#

Yeah it's like midnight here lol

balmy nymph
#

hahaha

#

c'mon guys

swift valley
#

!otn a pydis-is-a-short

wise cargoBOT
#

:ok_hand: Added pydis-is-a-short to the names list.

hushed elm
pure path
#

lol

balmy nymph
#

c'moooooooooooooooooooooooooooooooooooooooooonnn

#

hahaha

swift valley
#

It's immortalized now

#

Asia

#

I'm from the Philippines lol

cloud stratus
hushed elm
#

pls don't ban me

swift valley
balmy nymph
hushed elm
#

uh oh they're both angery

balmy nymph
pure path
#

next is gonna be hyperlemon and lemon_enraged

balmy nymph
#

Yeah, we have quite a few open source projects

#

The project I'm working on is currently private, we are just starting

hushed elm
#

ty

balmy nymph
#

Yeah

#

It is empty though haha

sick cloud
#

yet

hushed elm
#

cool math guy @tranquil barn

tranquil barn
#

cool meth guy *

hushed elm
#

huhuhuhuhuhuhuhuhuhuhuuh

cloud stratus
#

group theory meth guy

#

rubix guy

balmy nymph
#

I mispelt requirements :|

hushed elm
#

requivrements

narrow rock
#

What is @balmy nymph doing?

balmy nymph
#

I'm working on a python discord project!

#

Just getting started

narrow rock
#

Oh cool

tranquil barn
#

pydis project

balmy nymph
#

I started by helping some people in the help channels basically

cloud stratus
#

this joke was short-tempered amirite @hushed elm

balmy nymph
#

then I got interested in contributing to open source projects here

#

I became an helper around 3 months ago, and a core dev a week after

pure path
#

how did u become a core dev

cloud stratus
balmy nymph
#

Contributing a lot to our projects: https://git.pydis.com

GitHub

The hottest Python community on the planet! Python Discord has 30 repositories available. Follow their code on GitHub.

balmy nymph
#

Oh god

#

That's a lot of embeds

narrow rock
#

I just started learning python, what would be a good place to start learning. I mainly know javascript as background knowledge.

pure path
#

!resources @narrow rock

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.

balmy nymph
narrow rock
#

Not really, I know a little Java

#

@pure path I will check out the resources page. Thanks!

pure path
#

np

hushed elm
narrow rock
#

Stormzy lol

hushed elm
#

u got something agains stormzy?

#

HUH?

#

u in trubble

cloud stratus
narrow rock
#

nah, I haven't heard that name in a while though.

hushed elm
#

it's big in UK right now

wise glade
hushed elm
#

u wanna simplify it or what?

#

0 0 -> 0

#

not gate: 0 -> 1

cloud stratus
#

Oh I thought they were 2 LEDs and a diyode

balmy nymph
#

You should go to another code/help channel

#

Oh well

swift valley
#

r u n

narrow rock
#

This is the most Australian thing I've heard all day

hushed elm
balmy nymph
#

I do have some background

#

That's an invalid state

tranquil barn
#

XOR

#

Exclusive OR gate

#

X Y Z
0 0 0
0 1 1
1 0 1
1 1 0

pure path
#

@tranquil barn aren't u supposed to be in unversity 1st year?

tranquil barn
balmy nymph
#

Probably tensorflow @lyric dragon

tranquil barn
#

scikit-learn

hushed elm
#

this is bucharest

#

on a normal street

narrow rock
#

Best = most popular

hushed elm
#

best is a matter of perspective

narrow rock
#

He just wants the one with the biggest community

lyric dragon
#

^

hushed elm
#

aaa ok

lyric dragon
#

to be able to get more help more easily

hushed elm
#

the "most popular"

pure path
#

woo 20 ppl

hushed elm
#

yeah

#

WOOOO

narrow rock
#

I came here tp see what was poppin

#

But I stayed because the vc is almost like a podcast

hushed elm
#

it is like a podcast

tranquil barn
sick cloud
#

bye

hushed elm
#

The Schengen Area ( ) is an area comprising 26 European countries that have officially abolished all passport and all other types of border control at their mutual borders. The area mostly functions as a single jurisdiction for international travel purposes, with a common visa policy. The area is named after the 1985 Schengen Agreement signed in...

#

hey, u hungry

#

???

narrow rock
#

ThIs iS DifFerent

hushed elm
#

difffurunt

sick cloud
#

yess

#

hmmm

#

u need to be rich

narrow rock
#

Are the people there poor?

sick cloud
#

10/10 questions

hushed elm
#

WHAT"S THE BEST COUNTRY? PLS

narrow rock
#

🇺🇸 🇺🇸 USA #NUMBER# 1 🇺🇸 🇺🇸 🇺🇸

cloud stratus
#

Turkey is pretty cheap too

sick cloud
#

lol

hushed elm
#

since you're in australia are u a cricket? @somber heath

sick cloud
#

10/11

#

21/20

#

that response though

narrow rock
#

Phantom of the Opera, one of the longest running musicals is pretty overrated

#

Cats, the musical, is soooo good.

#

The movie did not do it justice.

sick cloud
#

i'll be brb

balmy nymph
#

Haha

#

I've been edited it since

#

I'm creating a workflow file for running flake8

narrow rock
#

He said The Greatest Showman

#

West Side Story is a good time

#

Annie is a classic

#

I recommend going watch any of those if you get a chance.

balmy nymph
#

flake8 will check if your code conforms to the PEP8

wise glade
#

so its like pylance?

balmy nymph
#

Yeah

#

It will report a simple error

#

Let me show you

wise glade
#

which is better? flake8 or pylance?

balmy nymph
#

You see?

#

Yeah

#

We have quite a few plugins too

wise glade
#

lets go with pylance, since VSCode forces it on you when you write ur first python code in it

balmy nymph
#

And here it passed

#

None doesn't need to get imported

#

If I use List I'll need to import it

#

for instance

#

mhm?

#

What do you mean by that?

#

It is a very cool tool

#

Definetely recommend it

#

Nope, this tool isn't by us

#

Alright, so the caching is sorted out

sick cloud
#

cuz my friend gave it too me

#

its roblox name tooo

balmy nymph
#

I needed a name back then, and I heard the name aekrys at the tv for some company

#

I thought akarys was pretty cool

somber heath
#

A car is. It just is.

pure path
#

My name is named after a book series

frigid panther
#

o/

sick cloud
#

theres only 2 opal's i think

gentle flint
#

3 opalmists

exotic night
#

i think this verification stuff too much

gentle flint
#

most people who aren't verified agree with you

sick cloud
#

hmmmm

gentle flint
#

most people who are verified disagree with you

exotic night
#

i know right

coral frigate
#

I am not voice verified yet. 50 messages, ughh

#

I just love math, hence the name

sick cloud
coral frigate
#

s

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @coral frigate until 2020-11-29 17:25 (9 minutes and 58 seconds) (reason: burst rule: sent 8 messages in 10s).

sick cloud
#

don't

gentle flint
#

bruh

sick cloud
#

i mean he didn't spam

gentle flint
#

macro is now listed above me in vc

#

bruh

sick cloud
#

lol

hushed elm
#

i'm above you

#

gotcha

sick cloud
#

lets gooooooo

gentle flint
#

how dare you

#

peasant

somber heath
#

"How to dive head-first into predictable outcomes, a demonstration."

hushed elm
gentle flint
#

raise yourself above me
how dare you

gentle flint
hushed elm
#

wanna chess?

gentle flint
#

sure

#

why are we communicating like this btw

hushed elm
#

cuz not to interrupt others

gentle flint
#

sure

hushed elm
#

if you wanna watch

#

no u

#

hahahahahah

sick cloud
#

nice

#

@tranquil barn be meth oof

hushed elm
#

hhhhh

balmy nymph
#

There's no rate limit

hushed elm
#

we never have too many opals

sick cloud
wise glade
somber heath
#

Spot the possum.

#

Sorry for potato quality image.

coral frigate
hushed elm
#

so tiny omg

#

MODS

#

that guy said a bad word

sick cloud
hushed elm
#

😮

sick cloud
#

ping the mod i dare u

sick cloud
coral frigate
wise glade
#

hey possum is the one, which they shows in cartoons farting badly right 😂

hushed elm
#

FARTING

wise glade
#

let me find an image

sick cloud
coral frigate
#

I wish I could speak right now!

wise glade
#

i apologize

coral frigate
#

true 😔

hushed elm
#

blurhbliurhiuhrubblugh

sick cloud
hushed elm
#

50 from what i remember

coral frigate
#

no clue :/

balmy nymph
#

Do you want some stats about voice verification?

coral frigate
#

is there a command to check?

#

no stats

hushed elm
#

yes

#

pls stats

sick cloud
somber heath
#

Stats, STAT.

hushed elm
#

aha

wise glade
#

can I open two files at a time using with open(file1, file2) as f1, f2:?

sick cloud
balmy nymph
#

Alright, so far we have 857 verified users out of the 5272 eligible

somber heath
#

@wise glade Try it.

coral frigate
#

Open allows only 1 param

wise glade
coral frigate
#

it doesn't have **kwargs

sick cloud
wise glade
#

doing it again

coral frigate
#

wtf

balmy nymph
#

in the last 6h, 33 people has been rejected because of the activity block rule, 48 because of the total messages, and 22 because they joined too soon

coral frigate
#

i still can't unmute

#

90 or 19?

tranquil barn
#

90

hushed elm
#

that's interesting

balmy nymph
hushed elm
#

what does "failed" means in this context?

wise glade
#

what is a PosixPath?

balmy nymph
#

They doesn't meet one of the 3 criteria

wise glade
#

TypeError: open() argument 'mode' must be str, not PosixPath, getting this

balmy nymph
#

I thiiink it can count the same person many times

wise glade
#

POSIX refers to the rules made for the file systems for operating systems, right?

balmy nymph
#

@whole rover do you know if the failed voice gate stats can count the same person twice?

balmy nymph
wise glade
#

what's windows? what rules does it follows?

somber heath
#

@wise glade You could construct a custom class to do it.

balmy nymph
#

It follows their own rules haha

wise glade
#

so, this error won't show up if i was using windows?

hushed elm
#

gg bruh

wise glade
coral frigate
hushed elm
#

uh oh

coral frigate
#

This is dumb.

balmy nymph
#

You need to reconnect

#

because Discord

hushed elm
#

have you tried rejoining?

coral frigate
balmy nymph
#

Hmm

#

Restart your client?

#

That's on Discord, not us

icy axle
#

Still streaming?

balmy nymph
#

Yup!

coral frigate
#

@whole bear then why are you on this server?😂

icy axle
#

How’s it going with it?

#

The project

balmy nymph
#

Slowly but surely

icy axle
#

Lovely

#

I’m looking forward to it

stoic ore
#

how about now

whole bear
#

so that i suck less!!!

icy axle
#

Like, using it

balmy nymph
#

Noice

stoic ore
#

@hushed elm @somber heath @gentle flint @tranquil barn Did u Liked

coral frigate
somber heath
#

@stoic ore ?

stoic ore
#

the name

#

D:

sick cloud
#

@hushed elm can i u play a match with me ?

hushed elm
#

sure one moment

sick cloud
hushed elm
#

nice

#

gg @sick cloud

sick cloud
#

well played though

#

come here

#

@tranquil barn

#

@tranquil barn well played

whole bear
#

this server is real cool

sick cloud
whole bear
#

less python more party!!!

balmy nymph
sick cloud
#

@tranquil barn well played

#

@hushed elm i learn it by myself

#

by playing with Ai

#

idk

#

tbh

hushed elm
#

idk tbh

sick cloud
#

i don't count

hushed elm
#

lol pvp

#

brb ptp

#

txt lsd

sick cloud
hushed elm
#

jkjkjkjkjk

#

peer to peer

whole bear
#

Jag is indian and the only two thing we know is maths and chess

hushed elm
#

i think

#

lol ur racist

whole bear
#

no cmpetition there

sick cloud
#

brb

whole bear
#

bro chill was praisng u infact

hushed elm
#

Uluru (, Pitjantjatjara: Uluṟu Pitjantjatjara pronunciation: [ˈʊ.lʊ.ɻʊ]), also known as Ayers Rock (, like airs) and officially gazetted as Uluru / Ayers Rock, is a large sandstone rock formation in the southern part of the Northern Territory in central Australia. It lies 335 km (208 mi) south west of the nearest large town, Alice Springs.
Uluru...

stoic nymph
#

guys

stoic nymph
#

need help

#

new to python

sick cloud
stoic nymph
#

new to python

wise glade
#

difference between json.dump() and json.dumps()

#

i don't get it seriously, should i just read the docs?

#

yeah, whatever the data-type, it can be anything?

#

list, dicts, array etc?

balmy nymph
#

dump will dump into a file, while dumps will dump into a string

#

!d json.dump

wise cargoBOT
#
json.dump(obj, fp, *, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, cls=None, indent=None, separators=None, default=None, sort_keys=False, **kw)```
Serialize *obj* as a JSON formatted stream to *fp* (a `.write()`-supporting [file-like object](../glossary.html#term-file-like-object)) using this [conversion table](#py-to-json-table).

If *skipkeys* is true (default: `False`), then dict keys that are not of a basic type ([`str`](stdtypes.html#str "str"), [`int`](functions.html#int "int"), [`float`](functions.html#float "float"), [`bool`](functions.html#bool "bool"), `None`) will be skipped instead of raising a [`TypeError`](exceptions.html#TypeError "TypeError").

The [`json`](#module-json "json: Encode and decode the JSON format.") module always produces [`str`](stdtypes.html#str "str") objects, not [`bytes`](stdtypes.html#bytes "bytes") objects. Therefore, `fp.write()` must support [`str`](stdtypes.html#str "str") input.

If *ensure\_ascii* is true (the default), the output is guaranteed to have all incoming non-ASCII characters escaped. If *ensure\_ascii* is false, these characters will be output as-is.... [read more](https://docs.python.org/3/library/json.html#json.dump)
balmy nymph
#

!d json.dumps

wise cargoBOT
#
json.dumps(obj, *, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, cls=None, indent=None, separators=None, default=None, sort_keys=False, **kw)```
Serialize *obj* to a JSON formatted [`str`](stdtypes.html#str "str") using this [conversion table](#py-to-json-table). The arguments have the same meaning as in [`dump()`](#json.dump "json.dump").

Note

Keys in key/value pairs of JSON are always of the type [`str`](stdtypes.html#str "str"). When a dictionary is converted into JSON, all the keys of the dictionary are coerced to strings. As a result of this, if a dictionary is converted into JSON and then back into a dictionary, the dictionary may not equal the original one. That is, `loads(dumps(x)) != x` if x has non-string keys.
tranquil barn
balmy nymph
#

Do you see how the first one has the fp parameter?

#

Alright, I'll have to go guys, cya!

frigid panther
#

@sick cloud I'm the one playing against you on lichess

frigid panther
whole bear
#

do we have someone russian here???or surrounding nation

sick cloud
#

a moment of silence

whole bear
wise glade
#

yeah, file object, and were done

sick cloud
frigid panther
#

what

#

the game stopped

wise glade
#

dumps return a "jsonable" string

frigid panther
#

lol

frigid panther
#

I made 2 moves and then stopped

sick cloud
#

cuz i won after ur 2 moves

frigid panther
#

dumps gives you a string as output but dump actually dumps it to a file

sick cloud
#

anyone watching the match ?

wise glade
#

i mean py with open('file.json') as fp: json.dump(some_dictionary, fp)
This just creates a nice json file for me

#

but json.dumps(python_object(list, dict etc) ) returns a string, so what do I do with that string?

frigid panther
#

its useful if you want to get a json output as string but with indents
example: json.dumps(dict, indent=2)

#

@wise glade

#

this is what I use it for

wise glade
#

yeah, it will return a string, right?

#

some_string = json.dumps(dict, indent=2)?

#

what do I do with this some_string? write it to a text file or something? write it to a json file using json.dump()?

frigid panther
#

yes, I use it for the indent incase I want to see my dict in a neat format(for huge dicts)

frigid panther
#

I'm just used to the json.dumps, lol

wise glade
#

oh, you mean inside the .json file

frigid panther
#

you can do pass indent as keyword arg inside dump too

wise glade
sick cloud
#

@tranquil barn idk

whole bear
#

hey you guys know that # mountain though im a rookie so i have built it very messy tell me a shorter way left_align_counter = 0
print("Printing left aligned")
print("Height: ", end="")
height = int(input())

for h in range(height):
left_align_counter +=1
print("#"left_align_counter)

print("DONE.")

right_align_counter = 0
print("Printing right align ")

for h in range(height):
right_align_counter += 1
print(" "int(height-right_align_counter), end="")
print("#"int(right_align_counter))

print("DONE.")

counter = 0
for h in range(height):
counter += 1
print(" "int(height-counter), end="")
print("#"int(counter), end=' ')
print("#"int(counter),end="\n")

frigid panther
#

!code

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.

wise glade
#

srry guys, time for bed now, its 11:40 pm now here, dragon_ knows or master_opal 😂

#

bye, night

whole bear
#

'''py

#

'''py left_align_counter = 0
print("Printing left aligned")
print("Height: ", end="")
height = int(input())

for h in range(height):
left_align_counter +=1
print("#"left_align_counter)

print("DONE.")

right_align_counter = 0
print("Printing right align ")

for h in range(height):
right_align_counter += 1
print(" "int(height-right_align_counter), end="")
print("#"int(right_align_counter))

print("DONE.")

counter = 0
for h in range(height):
counter += 1
print(" "int(height-counter), end="")
print("#"int(counter), end=' ')
print("#"int(counter),end="\n") ''

wise glade
sick cloud
frigid panther
#

Where are you function annotations?

sick cloud
#

!code

frigid panther
#

use cogs @sick cloud

whole notch
#

oops not backslash This: " ``` "

somber heath
#
import json
alpha = [1,2,3]
>>> with open('example.json', 'w') as file:
    json.dump(alpha, file)
>>> with open('example.json', 'r') as file:
        alpha = json.load(file)
>>>alpha
[1,2,3]
>>> with open('example.json', 'w') as file:
        _string = json.dumps(alpha)
        file.write(_string)
9
>>> with open('example.json', 'r') as file:
        _string = file.read()
        alpha = json.loads(_string)
>>> alpha
[1, 2, 3]```
sick cloud
wise glade
#

yeah, thanks, so let me read it, i guess

frigid panther
#

cogs allow you to split your bot functionality into different files

somber heath
#

!code

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.

unreal swallow
#

`

#

ad

whole bear
#
print("Printing  left aligned")
print("Height: ", end="")
height =  int(input())

for h in range(height):
    left_align_counter +=1 
    print("#"left_align_counter)

print("DONE.")

right_align_counter = 0
print("Printing right align ")

for h in range(height):
    right_align_counter += 1
    print(" "int(height-right_align_counter), end="")
    print("#"int(right_align_counter))

print("DONE.")


counter = 0
for h in range(height):
    counter += 1
    print(" "int(height-counter), end="")
    print("#"int(counter), end=' ')
    print("#"int(counter),end="\n")```
sick cloud
unreal swallow
#
fksajfkd
khc;lsvf
whole bear
#

hash mountain

#

to enters values height

frigid panther
#

did you throw the match on purpose?

sick cloud
#

!e

wise cargoBOT
#
Command Help

!eval [code]
Can also use: e

*Run Python code and get the results.

This command supports multiple lines of code, including code wrapped inside a formatted code
block. Code can be re-evaluated by editing the original message within 10 seconds and
clicking the reaction that subsequently appears.

We've done our best to make this sandboxed, but do let us know if you manage to find an
issue with it!*

frigid panther
#

!e

print("hello, world")```
wise cargoBOT
#

@frigid panther :white_check_mark: Your eval job has completed with return code 0.

hello, world
sick cloud
#

!e print("hi")

wise cargoBOT
#

@sick cloud :white_check_mark: Your eval job has completed with return code 0.

hi
sick cloud
#

lol

#

!source e

wise cargoBOT
#
Command: eval

Run Python code and get the results.

Source Code
tranquil barn
wise glade
#

hey there's a method which can detect the data type from the string value of that data, like

data = '[1,2,3,4]'
result = that_method(data)
print(result, type(result)) # here it would give [1,2,3,4], <class 'list'>

anyone knows that method?

frigid panther
tranquil barn
#

after a while, online chess gets boring for me, idk why

whole notch
frigid panther
tranquil barn
#

hahahh yeah i guess

wise glade
#

oh, this digital wellbeing thing, it turns on airplane mode in my android at 23:48 everyday, why? 😠

whole notch
wise glade
#

turns my whole screen to black & white, and turns on airplane mode, do not disturb,

sick cloud
#

can u post it again please ? @unreal swallow

wise glade
sick cloud
#

thx

wise glade
#

no, velocity, it was from python sucks guy

whole bear
#

just 20 sec will be back

wise glade
#

gotta make suggestions to google then, mr opal 😂, for digital wellbeing

whole bear
#
import shelve
from itertools import product

with shelve.open('session.id') as my_shelf:
    print('opening...')
    for key in my_shelf:
        globals()[key] = my_shelf[key]
    my_shelf.close()

middles = []

class middleToken(list):
    def __init__(self, generator):
        self.generator = generator
        self._len = 1

    def __iter__(self):
        self._len = 0
        for item in self.generator:
            yield item
            self._len += 1

    def __len__(self):
        return self._len

for i in middleToken(product(middle, middle)):
    middles.append(''.join(i))

for number, letters, end in zip(first, middles , last):
    print(number, letters, end, sep="")

how can i add tqdm to show the progress bar of the file opening and in the middles list the elements being added?

sick cloud
#

hi

#

@whole bear wdym ?

#

i read it

whole bear
#

apologies

sick cloud
tranquil barn
#

    height = int(input("Enter the height:"))

    for i in range(height,0,-1):
    
        print(" "*(i-1), "#"*(height-(i-1)), end ="")
        print("#"*(height-(i-1)), " "*(i-1))


if __name__ == "__main__":
    main()```
wise glade
#

one of the coolest methods in python ast.literal_eval()

from ast import literal_eval

a = str([1,2,3])
b = str(dict(a=1, b=2))
print(a,b, type(a), type(b))

a = literal_eval(a)
b = literal_eval(b)
print(a,b, type(a), type(b))
sick cloud
#

what is ast ?

wise glade
#

a module i think

#

anything which can be used like import stuff, the stuff is a module, right?

wise glade
#

oh god, its too cold to stay awake now, i better go to sleep

#

damm its cold, just too cold

sick cloud
#

@tranquil barn k dare u to change ur name to master meth

#

yesssss

#

niceee

#

i do

#

i've exams tmr

#

it only 8:40 now

lethal ingot
#

Finally

#

I got the voice chat

tranquil barn
#

sentdex @tidal salmon

somber heath
stoic ore
#

how do u know

whole notch
stoic ore
#

ı am arround

#

😄

#

come and going 😄

#

@eternal bough

#

hey

eternal bough
#

hello 👋

sick cloud
#

hello @eternal bough

somber heath
sick cloud
#

whorley noise

digital jackal
#

hey

#

im always greg

#

just changed my name

somber heath
#

@sick cloud Not Worley.

ocean sail
#

sup

somber heath
ocean sail
#

im new here

sick cloud
ocean sail
#

pp is a meme btw lol

digital jackal
ocean sail
#

cant for some reason

sick cloud
#

@hushed elm welcome back

digital jackal
hushed elm
#

heya @sick cloud

sick cloud
ocean sail
#

says i should send 50 messages or smthng like that

#

or be active for 30 minutes

digital jackal
sick cloud
ocean sail
#

says i am not eligible

sick cloud
ocean sail
#

ok

somber heath
sick cloud
#

do i hear mr hem ?

hushed elm
#

yeah alex is a good boy

#

pls make him owner

stuck furnace
#

Whoops, wrong chat.

digital jackal
#

awhh

stuck furnace
digital jackal
somber heath
#

"You wouldn't like me when I'm snippy."

digital jackal
hushed elm
#

two of these are on december 3

#

tommorw i have 7 exams

sick cloud
hushed elm
#

nice

digital jackal
somber heath
#

I'm just imagining Hulk with little fabric scissors, pinching them with four fingers.

hushed elm
#

HULK SNIPP

digital jackal
sick cloud
#

what is that ?

hushed elm
#

guilty

whole bear
#

Hi guys

#

How is going

#

Everyone full time coding like me

#

or just chilling

#

Lol

#

thats jokes

somber heath
#

I'm rendering.

hushed elm
#

I'm donkey

whole bear
#

i'm monkey

sick cloud
#

i'm chunky

stoic nymph
#

lol

whole bear
#

haha

#

thats jokes

hushed elm
#

do you know that feeling when u get arrested?

#

beaten?

sick cloud
#

yess

errant crater
#

lol

hushed elm
#

nice meme

#

"Saint Andrew is the patron saint of Romania"

sick cloud
#

like 10000 ppl have asked u this question

hushed elm
#

the OG opal

hushed elm
quasi agate
#

sometimes

errant crater
#

so sad

sick cloud
#

we do have exams'

#

i'm grade 9

errant crater
#

wow ok

quasi agate
#

😂

sick cloud
#

did i hear my name ?

somber heath
#

So, at first, everything went everywhere.

errant crater
#

they were celebrating

hushed elm
#

almost home

gentle flint
#

hurrah

hushed elm
#

celebrations

gentle flint
#

Just arrived home

#

4°C outside

hushed elm
#

uff

#

where did you come from?

somber heath
#

4c. On the cool side of things.

gentle flint
hushed elm
#

ahaa oke

#

buying stuff

gentle flint
#

mhm

#

now I'm drinking a very large glass of milk

#

and contemplating an email with distaste

scarlet drift
#

Wsup guys 🙂

#

hey wsup @gentle flint

gentle flint
#

eh

#

not much

#

basically that

#

but that's about it

sick cloud
#

hello @scarlet drift

scarlet drift
gentle flint
#

(it's in Dutch btw)

scarlet drift
#

doing maths I see

sick cloud
scarlet drift
#

f(x) takes an input

sick cloud
scarlet drift
#

If I remember correctly

gentle flint
#

oh, limits

tranquil barn
#

Integrals

scarlet drift
gentle flint
#

integrating from -26 to 26

sick cloud
scarlet drift
#

man I hated integrals

gentle flint
#

so did I

#

I still do

errant crater
#

who doesnt

gentle flint
#

and now I have to do them

#

what fun

scarlet drift
#

been like 2-3 years since I did calculus lol

tranquil barn
#

umm....i don't

scarlet drift
#

in highschool

gentle flint
stuck furnace
#

You doing statistics @gentle flint ?

gentle flint
#

?!?!?!

#

Yeah

sick cloud
tranquil barn
#

yeah

gentle flint
#

for noise suppression

scarlet drift
scarlet drift
sick cloud
scarlet drift
#

ah

sick cloud
#

i'm in highschool

scarlet drift
#

I'm thinking about starting statistics (didn't go to college) for my own learning's sake

stuck furnace
scarlet drift
#

plus developing analytics dashboards looks really intriguing

scarlet drift
stuck furnace
gentle flint
#

ah, thank you

#

I might see about that

stuck furnace
#

Also covers statistics, and explains statistical inference in terms of probability in a really illuminating way.

gentle flint
#

The thing is, I'll only be having statistics for this one unit in this one module

gentle flint
#

so not sure if I should get a whole book for it

stuck furnace
#

Ah yeah, it's a bit expensive 😄

gentle flint
#

indeed

stuck furnace
gentle flint
#

ah, thank you

#

I'll take a look at that

stuck furnace
#

The professor is the author of that book.

#

I think the lectures are also available on MIT OCW.

scarlet drift
#

bruh

stuck furnace
gentle flint
#

ono

gentle flint
#

lemme check out MIT OCW

scarlet drift
gentle flint
#

ye, just found that

#

thanks for all the tips!

stuck furnace
#

Gtg too

scarlet drift
#

It's like 1:54 AM here at my side LOL

sick cloud
scarlet drift
#

I should go to bed but here I am programming and planning to stay awake the whole night

somber heath
#

"The higher, the fewer."

sick cloud
#

i'll see @eternal bough @scarlet drift @gentle flint @tranquil barn @somber heath and @here tmr, good night

gentle flint
#

bruh

tranquil barn
#

Gn jag

gentle flint
#

you did not need to ping for that

#

but gn

sick cloud
gentle flint
#

@sick cloud

#

@sick cloud

#

@sick cloud

#

good night

#

@sick cloud

somber heath
#
sorted([image for image in images], key=lambda img: img.size[0]*img.size[1])```
#

Sum of widths for width. Max height of all for height.

#

Place first at 0,0, place second at width of first+1, third at the width of those two +1, fourth at the width of those three+1 and so on.

#

@whole bear Your network is screwing with your audio, I think.

#

Jaaank.

whole bear
#

Ugghhhh

#

I have shit internet

somber heath
#

I didn't hear your question.

#

Oh, I did. I forgot your question.