#voice-chat-text-0

1 messages Β· Page 1039 of 1

wind raptor
#

!rule 5 @whole bear

wise cargoBOT
#

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

warped raft
#

@wind raptor HELLO

#

HOW Are you

wind raptor
ebon cradle
#

Sorry to hear that mate, just left the vc

main vault
quaint oyster
somber heath
#

Were heaven and hell to exist, they would be filled with feet.

#

The soles of the departed.

trail mural
#

coffee

rugged tundra
trail mural
#

imagine the "afterlife" was future humans

#

to resurrect the pharoahs

#

like a cryochamber

rugged tundra
#

That was the best chamber they could build. Their possessions were to prove that they were wealthy/worthwhile to bring back alive into the "afterlife".

trail mural
#

here take my gold as a fee but bring me back to life

#

I'm totally worth it

trail mural
#

and if you could, please get my 10000 servants

#

I already arranged my organs into nice jars for you

rugged tundra
#

Yeah, taking the organs out of the body to preserve them and the body for as much time as possible.

#

They definitely believed they needed to preserve themselves and their organs.

trail mural
#

I can't imagine how future humans would consider how primitive we are

#

this is too meta for humans

empty gorge
#

hi

#

how to program ecualization button for my calculator?

whole bear
#
birthdays = {'Alice': 'Apr 1', 'Bob': 'Dec 12', 'Carol': 'Mar 4'}

while True:
    print('Enter a name: (blank to quit)')
    something = input()
    if something == '':
        break

    if something in birthdays:
        print(birthdays[something] + ' is the birthday of ' + something)
    else:
        print('I do not have birthday information for ' + something)
        print('What is their birthday?')
        bday = input()
        birthdays[something] = bday
        print('Birthday database updated.')

print(birthdays)```
#

something

#

birthdays[something] = bday

#

bday = input()

whole bear
#

!e ```py
birthdays = {'Alice': 'Apr 1', 'Bob': 'Dec 12', 'Carol': 'Mar 4'}

while True:
something = 'Alice'
if something == '':
break

if something in birthdays:
    print(birthdays[something] + ' is the birthday of ' + something)
else:
    print('I do not have birthday information for ' + something)
    print('What is their birthday?')
    bday = input()
    birthdays[something] = bday
    print('Birthday database updated.')

print(birthdays)```

#

birthdays[something] = bday

#

idk it think the only problem is something = input('Enter a name: (blank to quit)')

#

its getting the birthday of birthdays['Alice'] which is = apr 1

terse needle
#

!e

my_dict = {'a': 1, 'b': 2}

print(my_dict['a'])
my_dict['a'] = 4
print(my_dict['a'])

print(my_dict)
wise cargoBOT
#

@terse needle :white_check_mark: Your eval job has completed with return code 0.

001 | 1
002 | 4
003 | {'a': 4, 'b': 2}
whole bear
#

September 28

#

for k in spam.keys:

upbeat leaf
#
for element in birthday.keys():
  print (element)
whole bear
#

for element in birthday.values():

#

how have more than one in dict like my_dict = {'a': 1, 2, 'b': 2} or is that how?

terse needle
#

!e

my_dict = {'a': 1, 'b': 2}

for (key, value) in zip(my_dict.keys(), my_dict.values()):
    print(key, value)
wise cargoBOT
#

@terse needle :white_check_mark: Your eval job has completed with return code 0.

001 | a 1
002 | b 2
upbeat leaf
#

!e

birthdays = {'Alice': 'Apr 1', 'Bob': 'Dec 12', 'Carol': 'Mar 4'}
for element in birthday.keys():
  print (element + " : " + birthday[element])
wise cargoBOT
#

@upbeat leaf :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 | NameError: name 'birthday' is not defined. Did you mean: 'birthdays'?
whole bear
#

!e py my_dict = {'a': 1, 2, 'b': 2} print(my_dict[a[0]]) print(my_dict[a[1]])

wise cargoBOT
#

@whole bear :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     my_dict = {'a': 1, 2, 'b': 2}
003 |                        ^
004 | SyntaxError: ':' expected after dictionary key
whole bear
#

how have multiple???

upbeat leaf
#

!e

birthdays = {'Alice': 'Apr 1', 'Bob': 'Dec 12', 'Carol': 'Mar 4'}
for element in birthday.keys():
  print (element + " : " + birthdays[element])
wise cargoBOT
#

@upbeat leaf :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 | NameError: name 'birthday' is not defined. Did you mean: 'birthdays'?
upbeat leaf
#

!e

birthdays = {'Alice': 'Apr 1', 'Bob': 'Dec 12', 'Carol': 'Mar 4'}
for element in birthdays.keys():
  print (element + " : " + birthdays[element])
wise cargoBOT
#

@upbeat leaf :white_check_mark: Your eval job has completed with return code 0.

001 | Alice : Apr 1
002 | Bob : Dec 12
003 | Carol : Mar 4
terse needle
#
my_dict = {'a': 1, 'b': 2}

for (key, value) in zip(my_dict.keys(), my_dict.values()):
    print(key, value)
whole bear
#

!e py my_disct = {'Alice': ('hello', '2')} print(my_dict['Alice(1)']

#

!e py my_disct = {'Alice': ('hello', '2')} print(my_dict['Alice(1)'])

#

!e py my_dict = {'Alice': ('hello', '2')} print(my_dict['Alice(1)'])

wise cargoBOT
#

@whole bear :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 | KeyError: 'Alice(1)'
whole bear
#

!e my_disct = {'Alice': ('hello', '2')} print(my_dict['Alice'[1]])

upbeat leaf
#

!e

my_dict = {'Alice': ('hello', '2')}
print(my_dict['Alice'][1])
wise cargoBOT
#

@upbeat leaf :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 | TypeError: 'tuple' object is not callable
upbeat leaf
#

!e

my_dict = {'Alice': ('hello', '2')}
print(my_dict['Alice'][0])
wise cargoBOT
#

@upbeat leaf :white_check_mark: Your eval job has completed with return code 0.

hello
empty gorge
#

hi

#

who can help me becouse i am a begginer?

mossy cedar
wise cargoBOT
#

@whole bear :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 2
002 |     print(f'gold: {my_dict['inventory'][0]}')
003 |                             ^^^^^^^^^
004 | SyntaxError: f-string: unmatched '['
whole bear
#

!e py my_dict = {'inventory': ('10', 'sword'), 'stats': ('100', '200')} print(f'gold: '+my_dict['inventory'][0]) inventory_item = 0 for item in inventory - 1: inventory_item += 1 print('item: '+my_dict['inventory'][inventory_item]) print('health: '+my_dict['stats'][0]) print('food: '+my_dict['stats'][1])

wise cargoBOT
#

@whole bear :x: Your eval job has completed with return code 1.

001 | gold: 10
002 | Traceback (most recent call last):
003 |   File "<string>", line 4, in <module>
004 | NameError: name 'inventory' is not defined
whole bear
#

help

#

i ned help no work

#

the dict

#

ok

#

thx

lavish rover
#

@whole bear pls mute yourself

whole bear
#

i didnt realize

#

how do i set a string to a list if its in the right order of how a list is

#

list() just adds '', to each letter in it

ebon sandal
#

idk much about python but i believe you can use loop to actually do that

#

or there might be some predefinedfucntions for that

amber raptor
#

AAPL Market Cap is 2.25T vs MSFT 1.94T

ebon sandal
#

@whole bear dont cut soemone off from the conversation bruh

#

wait for your turn

#

xD

whole bear
#

i just asked a question then stopped talking bro not like i was actively talking over him

ebon sandal
#

and no one heard it, so just wait πŸ™‚

amber raptor
#

It's harder to go bankrupt as software company though

#

since you can severely cut costs but still exist. Hardware companies need a good amount of cash flow to buy devices

ebon sandal
amber raptor
#

and if that cashflow stops, you can't buy more hardware and fail

ebon sandal
#

but someone got to make hte hardware

#

πŸ™‚

amber raptor
#

I'm just speaking for business point of view

#

Microsoft never got close to bankruptcy because it's hard to go bankrupt if you are selling software.

#

Where Hardware can easily push you into bankruptcy

#

Learning Linux on the desktop does nothing for Linux as a server

ebon sandal
#

do you have any course to learn linux as a server?

amber raptor
#

Nope

ebon sandal
#

oh ok

whole bear
#

email = ''.join(random.sample(string.ascii_lowercase, random.randint(5, 20)))+data[random.randint(0, 9)]

whole bear
compact prawn
#

print(hello)

ebon sandal
amber raptor
#

as 10 years Windows person, I can go deep into inner working of Windows and some of bullshit

whole bear
#

!e py pin = '' prin = 'hello world' for item in prin: pin += item print(pin)

wise cargoBOT
#

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

hello world
whole bear
#

!e ```py
pin = ''
prin = 'hello world'
for item in prin:
pin += item

pin = pin.encode('utf-8')
pin = pin.decode('utf-8')
print(pin)```

wise cargoBOT
#

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

hello world
mystic kernel
#

is the tft 2 coconut.jpg a real thing

thin drift
#

where

mystic kernel
#

i can't understand how a image can crash a game

thin drift
#

how can this jpg picture can crash one entire game

mystic kernel
#

i have no idea

#

i thought some refactor error

thin drift
#

I found on google this

#

The coconut image first gained attention in the game's community when a person discovered it and posted it to Reddit in September 2020. Sure enough, the coconut picture can be found if you dig through the game's files, it can be found inside of a β€œtf2_textures_dir. vpk” file under the name β€œcoconut. vtf.”

mystic kernel
#

ahh

#

so the game actually doesn't function if its deleted?

thin drift
#

actually no

remote jacinth
thin drift
#

it just removes the texture

#

it like a type of developing code

mystic kernel
#

so that was just a hoax

thin drift
#

yep

#

yea it dosent do like for every code tab that says fix that or that, that why many people use python and not other coding programs

mystic kernel
#

yea

thin drift
#

i need to go bye

mystic kernel
#

cya

whole bear
#

File "C:\Users\myname\AppData\Local\Programs\Python\Python310\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 0-6: character maps to <undefined>

mystic kernel
#

aight gtg

#

cya yall later

whole bear
#

with open('test.txt', 'wb') as e:
for _ in range(1):
e.write('δ½ '.encode('utf-8'))

woeful salmon
#

@south bone did you actually add a breakpoint?

wind raptor
#

@south bone

woeful salmon
#

@somber heath how i usually debug my code o- o

#

pdb just works

#

and its simple to use

vivid palm
woeful salmon
vivid palm
#

yeah ipdb just has small extra things like syntax highlighting and stuff

#

nothing crucial

#

and the ipython interactive mode if you want that

#

i have yet to figure out how to finish all iterations of a loop tho

#

docs say to use u but i don't think that's ever worked for me

woeful salmon
#

don't think its to out of a loop

#

you can use until with the line number aftet the for loop tho that's 1 way to do it

south bone
woeful salmon
#
[commit]
  gpgsign = true
#

@supple marsh you can add this to your git config if you always wanna autosign commits

dapper peak
#

@somber heath good morning mate

cedar flame
#

hi

dapper peak
#

@somber heath you sound really tired today man compare to other day you ok

woeful salmon
dapper peak
#

@somber heath i will go study now c ya later
bye bye guys

formal rover
#

hi

#

ok thanks

#

i agree

vivid palm
woeful salmon
#

ah its not

vivid palm
#

oh lol

woeful salmon
#

i think u is short for up

#

which is like 1 level above in stack

vivid palm
#

kk will try until next time

#

do you know if pdb can do conditional breakpoints?

woeful salmon
#

you can just write your breakpoint() inside of an if statement

gentle flint
vivid palm
#

yeah I've done that

woeful salmon
#

so i can later just use sed to remove the lines with breakpoint in them

#

or if i have vim open i can just do a simple :%s/.*breakpoint().*\n//

empty gorge
#

hi

#

how are you

flat sentinel
rugged root
rugged root
#

@steady token @pseudo kite If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know. If you've been told this before, sorry

#

@urban summit Scratching out an example, I think I have it

#

Oh well, huh

#

It straight up says that you can't copy worksheets between workbooks

#

So you'd have to manually copy it out that way. Hmmm.... Actually, @vivid palm do you know off hand if there's a way to copy worksheets between workbooks with pandas?

steady token
#

@rugged root everyone was mutted and still had some voice in the channel

vivid palm
#

sure you'd have to open both workbooks

rugged root
vivid palm
#

read from one and write to another

#

on my way to work atm

rugged root
#

You're normally at work by now, ja?

vivid palm
#

yeah

#

getting coffee

tiny socket
steady token
#

thats cute

rugged root
ebon sandal
somber heath
#

Size of a softball.

rugged root
ebon sandal
rugged root
#

That is NOT cute

#

It's horrifying

somber heath
ebon sandal
ebon sandal
rugged root
#

You're missing context

ebon sandal
#

maybe

#

anyway gtg now

rugged root
main vault
#

platipus llooks like a pokmon

#

pokemon

rugged root
#

True dat

main vault
#

a kick neck pokemon

rugged root
#

@vivid isle Check out the #voice-verification channel. That'll tell you have you need to know about the voice gate.

olive hedge
#

@vivid isle hello, please see... oh xD haha, yes, that

vivid isle
#

!voiceverify

#

how to verify brooooooo what to do

rugged root
vivid isle
#

You can always join and listen to voice, but you must verify to be able to speak......howwwwwwwwwwww

somber heath
#

If birds lay eggs, do pegasi lay eggs or give birth?

vivid isle
#

you guys funny hahah

rugged root
#

Contribute to the conversation via text here, or check out the other various channels

vivid isle
#

ohh alright alright

rugged root
#

@whole bear What's your question

whole bear
#

nvm

#

ima just go help channel

rugged root
#

Alrighty. Let me know if you need anything

somber heath
#

Racism and antisemitism?

dry onyx
#

i am unable to connect my lavalink using my vps ip ( azure) but working fine on digital ocean vps .. but i wanna connect it to azure..

somber heath
#

I'm not sure how the world would handle Jason Momoa in Speedos.

rugged root
#

There's not enough water to quench the thirst of those who would see him in a Speedo

silk grove
#

wooooh, what was going round here?

dry onyx
#

in which channel btw ?

cedar flame
cedar flame
rugged root
#

Which of the two

rugged tundra
#

!voice @vivid isle

wise cargoBOT
#

Voice verification

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

keen pilot
#

help question?

rugged root
#

Shoot

keen pilot
#

Write a function that takes a non-empty array of distinct integers and an integer representing a target sum. If any two numbers in the input array add up to the target sum, the function must return them in the output array, in any order. If no pair of numbers in the input array add up to the target sum, the function must return an empty array.
Note that the target sum must be obtained by summing two different integers from the array, you cannot sum an integer with itself.
You can assume that there will be at most one pair of numbers adding up to the target sum.
input example
array = [3, 5, -4, 8, 11, 1, -1, 6]
targetSum = 10

Output example
[-1, 11] // can be in reverse order

rugged root
#

This for class or something?

keen pilot
#

yes

rugged root
#

We can help you if you're stuck, like help clarify something if you're not quite understanding it or explaining a concept, but we won't do it for you

#

So what part are you stuck on

rugged root
keen pilot
#

I don't know how to go through this

#

cycle through items

#

I do not speak English very well

rugged root
#

All good. Trying to figure out a way to explain it without spoiling it

cedar flame
#

you guys use irc?

#

i found something dope

rugged root
#

Was my mic quiet?

lavish rover
vivid isle
#

hi iam back hehe

rugged root
#

All good. Just checking

cedar flame
#

natural selection?

gentle flint
#

@rugged root

#

a sadness has occurred

rugged root
gentle flint
#

@cursive spoke we usually chat here

cursive spoke
#

i cant see your stream

gentle flint
#

there is nobody streaming

cursive spoke
#

oh ok

#

im your neighbour

#

im from germany πŸ˜„

gentle flint
#

nice

cursive spoke
#

im new on this server i have to do the tasks for voicechat

#

@analog barn you can start a business anytime

#

whats the exclusivity of your programm

#

@analog barn ok go on

#

@gentle flint dude poor boy dont tear him appart πŸ˜„

gentle flint
#

k

cursive spoke
#

hi @quaint oyster

analog barn
quaint oyster
#

mustafa i was taking a shower and i looked down and saw that my body wash was made in canada

analog barn
quaint oyster
#

so i feel like you should know that i was thinking about you naked in my shower

cursive spoke
#

i cant see it

#

oh you dont stream

analog barn
cursive spoke
#

so you can copy the name and put it in a word data right?

#

im out for now bb

rugged root
#

@cursive spoke I have confirmed that messages sent in the voice chat text channel thing (the integrated one) do NOT count towards your total yet. It's a limitation in discord.py that will be fixed whenever there's an update

analog barn
cursive spoke
#

ah no problem thx πŸ˜„ @rugged root

analog barn
rugged root
sweet lodge
#

Did someone say devops?

quaint oyster
#

no.

sweet lodge
#

Embrace devops!

quaint oyster
#

no.

sweet lodge
#

Now! dogegun

analog barn
sweet lodge
#

Don't run random .exes

#

Give them to me

#

Microsoft will check them

gentle flint
#

Grid computing is the use of widely distributed computer resources to reach a common goal. A computing grid can be thought of as a distributed system with non-interactive workloads that involve many files. Grid computing is distinguished from conventional high-performance computing systems such as cluster computing in that grid computers have ea...

#

specifically this

quaint oyster
#

sounds like a botnet

#

good to know

sweet lodge
#

@rugged root - What do you think of my work of art? Chris approves
bot#2207

viscid lagoonBOT
weary zephyr
#

no trolling on the hub@!!

sweet lodge
rugged root
sweet lodge
#

Yeah, I need to find a Linux one

rugged root
#
#
amber raptor
quaint oyster
#

network adapter

gentle flint
dry onyx
#

@rugged root Umm it needs to disabled firewall to connect 1 vps to another ?

#

1/r1 + 1/r2 + 1/r3... @analog barn
or R = V I for resistance

gentle flint
#

resistor set
capacitor set
diode set
transistors (optional, useful when you are getting into more advanced stuff)
relays (5 should suffice)
led lights (always interesting)
solderless breadboard like the one in the kit you posted
male-male and male-female jumper wires, about 20 of each
buttons can be fun depending on the project

thin drift
gentle flint
#

a hair thing you put on your head so it looks like you have different hair

thin drift
#

oh

gentle flint
#
Wig

A wig is a head or hair accessory made from human hair, animal hair, or synthetic fiber. The word wig is short for periwig, which makes its earliest known appearance in the English language in William Shakespeare's The Two Gentlemen of Verona. Some people wear wigs to disguise baldness; a wig may be used as a less intrusive and less expensive al...

thin drift
#

yea a remember

#

it just i didnt understand a word because a dont speak that to many of English, and because a not from US or UK

gentle flint
#

ah

thin drift
#

man i just realize how many roles have admin

rugged root
#

Yeeeeeep

#

A lot of headache

gentle flint
thin drift
# gentle flint

i think its from period when was like a dinasty of china but a forgot, i found a Qin dinasty

dark mural
#

Maybe just one artist really bad at recreating the same face

gentle flint
thin drift
#

and what is interesting that statues are still not borken or something

#

this remind of statues in US of US presidents

#

i cant

dark mural
#

@rugged root I can't even get my printer to work u are much smarter than me

#

@rugged root I can't even get a wife

mossy cedar
thin drift
#

ok now budy you a litle go far

quaint oyster
#

computer engineering > computer science

dark mural
#

I'm not humble I'm just stupid

thin drift
mossy cedar
#

and i can't get my girlfriend to stay

thin drift
#

what do you mean

mossy cedar
#

wemen are eViL

quaint oyster
#

heat goes here goes there ease

mossy cedar
thin drift
#

o

mossy cedar
peak copper
#
thin drift
#

i dont know who said that is studying enginiring but a made a Lego cannon whit motor and instead to go to shot foward its started to fire backward

mossy cedar
quaint oyster
#

@south bone you have feedback

#

mic

thin drift
#

jake is in AFK just like quiet kid

peak copper
thin drift
#

@rugged root most scariest is cannon punch when she explode it damange ear

dark mural
#

Nuts are the soft spot

thin drift
#

ayo

peak copper
thin drift
#

wait @whole bear what you need to study for biology informatic what you said

whole bear
thin drift
#

o

whole bear
#

you can also just do your undergrad in Bioinformatics directly too

thin drift
#

well that makes sense

mossy cedar
whole bear
mossy cedar
rugged root
#

@dense ibex You're kind of quiet

thin drift
#

@rugged tundra voice reminds of Philza minecraft voice

whole bear
#

well we study Alevels (cambridge high school thingy) and my subjects were biology, chemistry and physics so

#

you can also get in with biology, math and a third subject

thin drift
#

Philza Hardcore

south bone
#

Lemme show you why they call me Dr. Philz you up

dense ibex
#

what about thiojoe kek

mossy cedar
whole bear
south bone
thin drift
#

just when you go in canada dont go in qebec

#

note to all who wants to go in canada

whole bear
thin drift
#

because when a went from Serbia to Canada (Qebec) to my sister ,and when a was there us two went to one cafe and guy asked on french and a was like ,, Wait how is here French when there all speak English "Then a remebered that in Qebec 50 % of population speaks french , and a didnt remebered that because a had D in geography😭

rugged root
#

The Tech Lead

faint ermine
rugged root
#

@quasi condor Yo

gentle flint
whole bear
#

Canadas official languages are english AND french so

thin drift
gentle flint
whole bear
thin drift
#

Australia

whole bear
#

Its insanity

gentle flint
#

what is

#

to do it, or not to do it?

rugged root
#

Philippines kind of? Although I guess probably not

whole bear
thin drift
whole bear
# gentle flint which country is that

well Im from Kashmir so I cant really say Im from one country since its a disputed territory and here even though the official language is urdu AND english, preference is given to english

rugged root
#

True, but isn't Tagalog still the primary language?

gentle flint
#

people speak in Urdu

rugged root
#

This is coming from ignorance, I'm not actually sure

gentle flint
#

education is also given in Urdu

#

In Canada, that's not really a thing

whole bear
#

and theres an unspoken bias towards english speakers, theyre seen as more uh educated or yknow

whole bear
rugged root
#

Wait, oof

#

Are you trying to educate someone about their own country again?

whole bear
#

but i get your point definitely, in canada its non existent mostly

gentle flint
#

If you go to Quebec, you wil not see Mi'kmaq street signs

gentle flint
thin drift
#

in Bosnia you need to know 3 laungens

rugged root
#

Ah

gentle flint
whole bear
thin drift
thin drift
rugged root
#

Back in a sec, have a weird charge on my debit card.

gentle flint
thin drift
#

ne on nepostoji

gentle flint
thin drift
gentle flint
#

Bosanski jezik je južnoslavenski standardni jezik zasnovan na őtokavskom narječju koji koriste uglavnom Boőnjaci, ali i značajan broj ostalih osoba bosanskohercegovačkog porijekla.
Bosanski je sluΕΎbeni jezik u Bosni i Hercegovini, uz srpski i hrvatski, u Crnoj Gori jedan od sluΕΎbenih, a regionalni, odnosno priznati manjinski jezik u Srbiji (Sand...

thin drift
#

a only knowed that they speak serbia-crocatian

#

and syria launge

gentle flint
thin drift
gentle flint
#

except slovenian because that is quite different

thin drift
#

yea

gentle flint
#

and I suppose Macedonian because they don't have a case system

thin drift
#

a was born like 2005 in SMN

#

and there was only serbian

gentle flint
thin drift
#

yes

#

diveded 2006

gentle flint
#

ah yes

#

the unstable countries

thin drift
#

well if you ask me my country is unstable

#

because of kosovo and muslim problem

#

in vojvodina

gentle flint
#

you could say the same for North Macedonia
with Albania and Bulgaria

#

I think 25% of their population is ethnically Albanian

#

there are always issues all over the place

#

it is what happens when you draw random lines

#

and say "this is now a country"

#

without regard to which people are living where

whole bear
gentle flint
whole bear
#

!voiceverify

thin drift
rugged root
#

Yayyyy my debit card is compromised

thin drift
#

it above of voice 0

gentle flint
#

as an example, take a look at these borders

rugged root
#

Wheeeeeeee

gentle flint
#

they were literally drawn with a ruler

whole bear
gentle flint
#

"this is now ours, this is now yours"

gentle flint
whole bear
thin drift
rugged root
gentle flint
#

which has been running since the '70s

whole bear
thin drift
gentle flint
#

Many people in Western Sahara want to be independent of Morocco

#

Morocco disagrees

gentle flint
#

so those people formed an organisation, called Polisario

thin drift
gentle flint
#

which has been fighting a war against Morocco since the 70s

thin drift
#

so we have algerba borders

whole bear
#

What is the command to press Ctrl+a and Backspace in pyautogui?

gentle flint
#

Polisario is backed by Algeria and Mauretania

#

Morocco is backed by, if I remember correctly, the USA
and several others

whole bear
#

Interesting

#

Ill read up on this

gentle flint
#

The Western Sahara conflict is an ongoing conflict between the Sahrawi Arab Democratic Republic/Polisario Front and the Kingdom of Morocco. The conflict originated from an insurgency by the Polisario Front against Spanish colonial forces from 1973 to 1975 and the subsequent Western Sahara War against Morocco between 1975 and 1991. Today the con...

thin drift
whole bear
thin drift
#

it remindes me of Gogy

#

GeorgenotFound

#

because of glases

whole bear
#

I see that ....kinda

whole bear
thin drift
#

Western Sahara War against Morocco between 1975 and 1991. Today the con...
1991 yugoslavia be like lets split gang

gentle flint
thin drift
#

yea

#

a reget going in scholl

#

on last week

#

because when a learn History they make circle like they want to summon demon in me a they ask will you talk about WWI just because you know that ,do you know have much presure a get

gentle flint
#

can't follow, sorry

thin drift
#

no worrys

#

look what i found

#

this is to much

gentle flint
#

I hear an owl

thin drift
#

smaller version of New York in China

thin drift
whole bear
gentle flint
#

yeah

#

outside my window

rugged root
#

Well this is concerning

thin drift
whole bear
gentle flint
#

did you hear it

rugged root
#

There absolutely ARE things running

whole bear
thin drift
whole bear
rugged root
#

I just don't know

thin drift
mossy cedar
thin drift
#

a need to send like 50 mesages, and its not ,and a will not talk because am

mossy cedar
#

oOoo

#

itsnt it done yet?

rugged root
mossy cedar
#

i mean u typed a lot today

gentle flint
#

try running the command again

quasi condor
thin drift
faint ermine
mossy cedar
gentle flint
thin drift
gentle flint
#

brb

thin drift
#

but am like in morning online

mossy cedar
thin drift
#

now its dark

#

a need to go

#

bye

mossy cedar
thin drift
#

yes

mossy cedar
#

imma go see ya guys laterrr night

whole bear
#

later!

terse needle
#

this is a pipe

rugged root
#

MR. MIYAGI - Vodka, blue curaΓ§ao, melon liqueur, amaretto, fresh lemon juice, pineapple juice

#

Honestly all of their drinks are pretty solid

whole bear
#

i gtg guys. Catch yall later!

wise cargoBOT
#

Hey @whole bear!

It looks like you tried to attach file type(s) that we do not allow (.pdf). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a, .csv, .json.

Feel free to ask in #community-meta if you think this is a mistake.

whole bear
#
count = {}

for character in message:
    count.setdefault(character, 0)
    count[character] = count[character] + 1

print(count) ```
#

What does this do>

lavish rover
#

!e

for i in range(10):
    globals()[f'foo{i}'] = lambda: print(i)

foo0()
foo1()
foo2()
wise cargoBOT
#

@lavish rover :white_check_mark: Your eval job has completed with return code 0.

001 | 9
002 | 9
003 | 9
lavish rover
#

!e

for i in range(10):
    def bar():
      print(i)
    globals()[f'foo{i}'] = bar

foo0()
foo1()
foo2()
wise cargoBOT
#

@lavish rover :white_check_mark: Your eval job has completed with return code 0.

001 | 9
002 | 9
003 | 9
lavish rover
#

!e

for i in range(10):
    globals()[f'foo{i}'] = lambda i=i: print(i)

foo0()
foo1()
foo2()
wise cargoBOT
#

@lavish rover :white_check_mark: Your eval job has completed with return code 0.

001 | 0
002 | 1
003 | 2
somber heath
#

!e ```py
def factory(i):
def f():
return i
return f

a = factory(5)
b = factory(6)
print(a())
print(b())```

wise cargoBOT
#

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

001 | 5
002 | 6
somber heath
#

!e ```py
def factory(i):
def f():
print(i)
return f

for i in range(10):
globals()[f'foo{i}'] = factory(i)

foo0()
foo1()
foo2()β€Š```

wise cargoBOT
#

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

001 | 0
002 | 1
003 | 2
quasi condor
#

It's 8am @terse needle

terse needle
quasi condor
#

Why are you awake at 8am

terse needle
#

I have been awake since 6:30

quasi condor
#

Grim

terse needle
#

yeah, I just wake up a weird times

#

tbh it's not a weird time at all

#

I just have a sleep schedule

quasi condor
#

That's absolutely a weird time for someone with no work or school to get up

terse needle
#

you're just mad you can't wake up at that time

quasi condor
#

I got up at 525 today

#

But I got paid to

terse needle
#

shut up

#

just shut up

#

I was going to leave but now you have said this I am staying here

quasi condor
#

There's nothing wrong with it - it's just surprising

terse needle
formal rover
#

hi

#

yep lol

#

what?

#

oh haha

dark mural
#

hi

#

just put vc in background no worries

drifting crystal
thin drift
frosty star
#

hi opals~

somber heath
#

!e ```py
from random import shuffle

a = [1, 2, 3, 4, 5]
b = shuffle(a) #in place
print(a)
print(b)```

wise cargoBOT
#

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

001 | [5, 2, 3, 4, 1]
002 | None
somber heath
#

!e py things = [1, 5, 2, 4, 3] a = things.sort() print(a) print(things)

main vault
#

a_variabl = print('hello world')

wise cargoBOT
#

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

001 | None
002 | [1, 2, 3, 4, 5]
somber heath
#

!e py things = [1, 5, 2, 4, 3] a = sorted(things) print(things) print(a)

wise cargoBOT
#

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

001 | [1, 5, 2, 4, 3]
002 | [1, 2, 3, 4, 5]
rugged root
#

On in a moment

main vault
#

!e

list = [1, 2, 3] #instance of a class
wise cargoBOT
#

@main vault :warning: Your eval job has completed with return code 0.

[No output]
main vault
#

a_list = [1 ,2, 3]

#

a_list.sort()

#

print(a_list.sort())

wind raptor
#

Hey @rugged root

rugged tundra
main vault
#

id(a_list.sort()) != id(a_list)

#

e!

#

!e

a_list = [1,2,3]
id(a_list.sort()) == id(a_list)
#

!e

a_list = [1,2,3]
id(a_list.sort()) == id(a_list)
wise cargoBOT
#

@main vault :warning: Your eval job has completed with return code 0.

[No output]
rugged root
#

!e

ham = [1, 2, 3]
bacon = ham
spam = ham[:]

print(ham is ham)
print(ham is bacon)
print(ham is spam)

pork = ham.sort()
print(pork)
print(ham is pork)

wise cargoBOT
#

@rugged root :white_check_mark: Your eval job has completed with return code 0.

001 | True
002 | True
003 | False
004 | None
005 | False
somber heath
#

Spam ham bacon spork! Wroarrgh!

thin drift
#

Wait why python says that Triangle is not defined

#

pg.display.set_caption(Triangle)
NameError: name 'Triangle' is not defined

somber heath
#

Has class Triangle either been imported from a module or otherwise been defined?

thin drift
#

I actually set code pg.display.set_mode

somber heath
#
from somemodule import Triangle
#or
class Triangle:
    ...```
rugged root
#

!e

ham = [2, 3, 1]
pork = sorted(ham)

print(ham)
print(pork)
print(ham is pork)
wise cargoBOT
#

@rugged root :white_check_mark: Your eval job has completed with return code 0.

001 | [2, 3, 1]
002 | [1, 2, 3]
003 | False
rugged root
#

!e

ham = "bacon is dope"
ham[0] = "h"
wise cargoBOT
#

@rugged root :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 | TypeError: 'str' object does not support item assignment
somber heath
#

!e py text = "apple" print(id(text)) result = text.upper() print(id(result)) print(result)

wise cargoBOT
#

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

001 | 140155604738928
002 | 140155604739696
003 | APPLE
somber heath
#

This is probably a bad example for technical reasons, but we can pretend.

main vault
#

2.342

rugged root
#

One sec

dark mural
#

hi

somber heath
#

!e py a = "abc" b = "abc" print(id(a)) print(id(b))

wise cargoBOT
#

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

001 | 140101502977200
002 | 140101502977200
thin drift
#

i may broke the code

wind raptor
#

!e

num = 1
print(id(num), num)
num += 1
print(id(num), num)
num -= 1
print(id(num), num)
wise cargoBOT
#

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

001 | 140087047651568 1
002 | 140087047651600 2
003 | 140087047651568 1
dark mural
#
import shutil
shutil.copytree("drive1", "drive2")

that will be $200 thanks

#

can u write the software and tell them u bought it online for $XYZ

#

LemHock Code Industries

thin drift
#

here is picture of i said , i waned to make like piramide but ended like A but side ways

frosty star
#

I just realized I've been using vc1 chat :p

#

so hi again oprals

dark mural
frosty star
#

hi everyone

wind raptor
wind raptor
thin drift
#

its kidna look like printer

somber heath
#

From the moment we started sending up satellites, that was pretty much it.

lavish rover
somber heath
#

Though Starlink would be a fairly egregious blight on things.

lavish rover
#

that just reminds me of zelda

thin drift
#

yea

#

ducktape be like:

frosty star
#

Which linter is the best linter in your humble opinions?

#

Py what

#

whats the difference between a formatter and a linter

somber heath
#

Duct tape (also called duck tape, from the cotton duck cloth it was originally made of) is cloth- or scrim-backed pressure-sensitive tape, often coated with polyethylene. There are a variety of constructions using different backings and adhesives, and the term 'duct tape' has been genericized to refer to different cloth tapes with differing purp...

lavish rover
frosty star
#

ha..

#

oh gosh

thin drift
frosty star
#

all that was about πŸ’©

#

i totally missed it

#

pfffft

#

ooh

#

that's actually pretty interesting

lavish rover
somber heath
#

"Why did you resign?"
BAP BAP BAP

lavish rover
frosty star
#

It’s CHICKEN SHAPED LIKE A STEAK I’m DED πŸ˜‚

thin drift
# frosty star

steakchipcarrot, I remeber from video on YT but i forgot which one

lavish rover
frosty star
thin drift
#

i remebered Fundy i regret watching him

lavish rover
thin drift
peak copper
somber heath
#

Observer texture.

main vault
#

"The observer method is a Behavioral design Pattern which allows you to define or create a subscription mechanism to send the notification to the multiple objects about any new event that happens to the object that they are observing." the Behavioral design Pattern sounds intriguing to me

thin drift
#

I need to go bye

main vault
#

bye

wind raptor
#
main vault
wind raptor
#

No problem! I love this channel.

rugged root
#

Man I go to take care of some work stuff and everyone bails

frosty star
#

Haaay

wise cargoBOT
#

Hey @dense ibex!

You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.

dense ibex
rugged root
#

@amber raptor Do you typically just write PowerShell scripts in VS Code? If so any particular extensions other than the PowerShell one?

frosty star
#

Ah. I think I’ll go watch it now until I go to sleep

#

Bbye guys

dense ibex
amber raptor
rugged root
#

Sounds good

frigid panther
#

Q: what are invalid valid dict key names ?

#

@whole bear

lavish rover
#

hashable != mutable though

#

You can define a hash method for anything.

somber heath
#

@lavish rover You're quietish.

lavish rover
#

Yeah my audio also got really quiet

#

Not sure what's up

#

πŸ€·β€β™‚οΈ

whole bear
rugged tundra
hasty fulcrum
#

sorting algo?

rugged root
#

Seems to be

#

Odd way for them to phrase it/present the prompt

rugged tundra
#

Ignore the red, white blue. Just think 0 1 2

hasty fulcrum
#

umm?

#

just use bubble sort or quick sort>?

#

I use java now a days 😒

#

LMFAO

rugged root
somber heath
#

Corey Schafer, Youtuber, playlist for Python beginners.

rugged root
#

Heading out for deliveries, I'll hop on in the van

hasty fulcrum
#

LMAO
python uses tim sort which is a combination of insert and merge

#

@rugged tundra I am stealing ur about me content

#

thanks

hasty fulcrum
swift valley
#

I'm assuming paperwork

#

The windows registry feels like it's patched together

#

Like dare touch anything on it and everything breaks

willow light
#

Eh, who even needs clean code? I'm still trying to get things to work.

willow light
#

!paste

wise cargoBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

willow light
swift valley
willow light
#

it doesn't like the # in the first two lines of the TSV

#

Little Caldwell Island

#

43.932566, -69.289216

#

exact location ^

#

loooooove mackerel

gentle flint
willow light
swift valley
gentle flint
willow light
#

The absolute state of these trails

#

I don’t need a bike when I have this

gentle flint
willow light
swift valley
#

Just listening

#

and writing documentation for my project

willow light
#

working on some typescript projects: trying to convert NDBC data from TSV to JSON.

analog barn
gentle flint
analog barn
#
mystic kernel
#

is there a difference between the built in websockets python library and FastAPI?

#

the name FastAPI is really deceiving

#

makes me think it's some sort of requests library alternative

#

welp mb I just realized and im stupid

gentle flint
molten pewter
#

NoRoot Firewall

molten pewter
molten pewter
gentle flint
rugged root
#

Back in a sec

gentle flint
#

back in a bit

quaint oyster
#

back in a jiff

rugged root
#

@amber raptor Is robocopy just for files? I'm needing to take whole directories and scoot them

terse needle
whole bear
#

i am building

#

a bot on discord

#

that control

#

my gba emulator

#

but the entire discord can control at the same time

#

@rugged root

rugged root
#

Oooo

whole bear
#

but i want a good rom to play on

#

like pokemon or something like that

rugged root
#

Do the ones in that generation move on a grid?

whole bear
#

yes

rugged root
#

Main reason those worked for like Twitch Plays was because of that

#

Oh then yeah, that'd work

whole bear
#

:]

amber raptor
#

Just read the documentation and play with it using test data.

rugged root
#

Right right.

#

I just didn't realize that a directory was considered a file in that case

#

It wasn't overly explicit in that case

whole bear
#

chease ?

#

a ok

terse needle
whole bear
#

karen?

terse needle
whole bear
#

ok

peak copper
whole bear
#

cool

amber raptor
whole bear
#

bye

rugged root
#

@pearl forge If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about our voice gate system

#

rubber baby buggy bumpers

#

One smart fellow, he felt smart

whole bear
#

tres mafagafos subiram num ninho de mafagafinhos quem desmafagafar o ninho de mafagafinhos bom desmafagafador sera

rugged root
whole bear
#

vamos puxar a capivara dele

#

lets see his historical

#

not a god idea

rugged tundra
#

!voice

wise cargoBOT
#

Voice verification

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

whole bear
#

the most smart animal is the the

rugged root
#

Make a class for a car:
It will need to be able to store the make, the model, the year, the gas mileage and gas capacity. You'll want it to be able to give you details about the car via a method.

You'll also want a method to calculate how much gas it'll take take to go a provided number of miles based on the gas mileage.

#

Added bonus, calculate how many stops for gas you'll need to make for a given distance, assuming we go from a full take to no gas left between fill-ups

whole bear
#

i have to go now bye

#

πŸ™‚

rugged root
#

!e

class Student:
  def __init__(self, name, age, favorite_subject):
    self.name = name
    self.age = age
    self.favorite_subject = favorite_subject

  def introduce(self):
    print(f"Hi! I'm {self.name} and I'm {self.age} years old. My favorite subject is {self.favorite_subject}.")

sally = Student("Sally", 8, "science")
billy = Student("Billy", 7, "math")

sally.introduce()
billy.introduce()
wise cargoBOT
#

@rugged root :white_check_mark: Your eval job has completed with return code 0.

001 | Hi! I'm Sally and I'm 8 years old. My favorite subject is science.
002 | Hi! I'm Billy and I'm 7 years old. My favorite subject is math.
rugged root
#

Student.introduce(sally)

#

!e

class Student:
  def __init__(self, name, age, favorite_subject):
    self.name = name
    self.age = age
    self.favorite_subject = favorite_subject

  def introduce(self):
    print(f"Hi! I'm {self.name} and I'm {self.age} years old. My favorite subject is {self.favorite_subject}.")

sally = Student("Sally", 8, "science")
billy = Student("Billy", 7, "math")

print(sally.name)
print(billy.age)

sally.introduce()
billy.introduce()
wise cargoBOT
#

@rugged root :white_check_mark: Your eval job has completed with return code 0.

001 | Sally
002 | 7
003 | Hi! I'm Sally and I'm 8 years old. My favorite subject is science.
004 | Hi! I'm Billy and I'm 7 years old. My favorite subject is math.
whole bear
#
class Car:
    def __init__(self, company, model, gas_capacity, gas_mileage):
        self.company = company
        self.model = model
        self.capacity = gas_capacity
        self.mileage = gas_mileage

    def gaspermile(self):

rugged root
whole bear
#

@gentle flint Yo

#

Can u help me ut

#

out

gentle flint
molten pewter
quaint oyster
#

@lavish rover sorry to @ you but do you think we could set up a time to go through the serenityOS project? I think it would help me develop my understanding of operating systems.

gentle flint
lavish rover
quaint oyster
#

Fair thanks anyway

quaint oyster
#

if anyone else was interested I found this video by Andreas Kling particularly helpful https://www.youtube.com/watch?v=NpcGMuI7hxk

Serenity is open source on GitHub: https://github.com/SerenityOS/serenity
Follow me on Twitter: https://twitter.com/awesomekling
Support Serenity on Patreon: https://www.patreon.com/serenityos
Sponsor me on GitHub: https://github.com/sponsors/awesomekling
Donate via Paypal: http://paypal.me/awesomekling

Serenity is a Unix-like operating system ...

β–Ά Play video
rugged root
#

@whole bear If you're wondering why you can't talk, check out #voice-verification. That'll tell you what you need to know

rugged root
#

In the meantime before you're verified, you can always talk with us here

#

Typically if we're in VC, we'll be watching the text channel paired with it

#

Note, I mean this one rather than the built in one that comes with a voice channel

#

There's still some kinks we're working out. Messages sent via the voice chat text chat thing aren't counted toward message total for the purpose of verification

#

Will be fixed soon, but currently still an issue

whole bear
#

ok

#

sooo

#

hello

quasi condor
rugged root
#

I can't

quasi condor
#

force everyone to use a modded client

rugged root
#

You can't disable it, the perms aren't granular enough

quasi condor
#

that's ridiculous from Discord

#

didn't eralise

#

can you disable everyone from being able to send messages in there?

rugged root
#

Send yeah

#

But at the same time I want people to use it eventually. Oh, and even better

#

You have to set the perms per channel

#

You can't do it globally

#

Nor can you do it via category perms

quasi condor
#

I want people to use it eventually
booo

whole bear
#

lol

rugged root
#

I know

#

Eventually

#

There's lots of quality of life things they desperately need to do.

quasi condor
#

My suggestion would be disable send permissions and just have a big ole message from @wise cargo telling people to use here - and eventually when it gets better enough, flip it

whole bear
#

!voiceverify

#

?

rugged root
whole bear
#

and

#

i just have to send 50 messages?

#

that's all

#

?

rugged root
#

You should be able to check your count by doing !user in the #bot-commands channel

whole bear
#

does it work if i just speak alone like a dumbo?

#

!user

wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

whole bear
#

oh oops

#

sorry

rugged root
#

all good

whole bear
#

only one messsage

#

done?

rugged root
#

And no, that doesn't work, as we typically extend the required amount of time by 2 weeks if people are just trying to spam their way to getting verified

#

Should be able to verify now, yeah

whole bear
#

ok

#

lemme try

rugged root
#

You just have to do the command again in #voice-verification. You might have to swap channels and come back or disconnect/reconnect in order for the permissions to kick in

whole bear
#

yea

#

thanks

rugged root
whole bear
#

whut??

amber raptor
#

@dense ibex keep that up and I’m voting to cut your education funding.

dense ibex
#

Kek do it, so I have an excuse to do shit in school

rugged root
#

Sorry, trapped talking to one of the partners

#

Still here

#

@whole bear How's the class thing goin'

whole bear
#

Oh hey

#

Its pretty good

#
class Car:
    def __init__(self, company, model, car_capacity, gas_tank):
        self.company = company
        self.model = model
        self.capacity = car_capacity
        self.tank = gas_tank

    def getstats(self):
        print(f"\nYour car is made from {self.company} and is a model {self.model}.")
        print(f"\nThis car can contain {self.capacity} people.  It can also contain {self.tank} gallons.")

    def distance(self, speed, time):
        print(f"\nThe distance traveled will be {speed * time} miles.")
#
from gas import Car

tesla = Car("Tesla", "3", 5, 16)

tesla.getstats()
tesla.distance(50, 100)

tesla.getstats()
swift valley
#

async is a just a feature in general

somber heath
#

A*SYNC

#

Also, carrion sprinter.

dense ibex
#

Coroutine is just a fancy name for async functions I forgot if I said that already.

rugged root
#
response = await api_call_thingy()
somber heath
#

Jake, you're on the quiet side.

molten pewter
#

So much lag, must jet... 😴 πŸ›Œ πŸ’€

somber heath
#

Carbonated fluids up the nose? Fun for the whole family, right there. 😫

rugged root
#

That'd clear out your sinuses

lethal thunder
#

I have a snake game ive made using pygame and i have an issue where when you click a button on the keyboard it does what it turns, but if click two buttons at once it will just throw the game

peak copper
lethal thunder
#
def keys(self, event):
        if self.length > 1: # If snakes length more than 1, run this
            # Turn depending on key press
            if event.key == LISTOFKEYS[0] or event.key == LISTOFKEYS[4]: 
                if self.dir == DOWN: return
                else: self.dir = UP                
            elif event.key == LISTOFKEYS[1]or event.key == LISTOFKEYS[5]: 
                if self.dir == UP: return
                self.dir = DOWN
            elif event.key == LISTOFKEYS[2]or event.key == LISTOFKEYS[6]: 
                if self.dir == RIGHT: return
                self.dir = LEFT
            elif event.key ==  LISTOFKEYS[3]or event.key == LISTOFKEYS[7]:
                if self.dir == LEFT: return
                self.dir = RIGHT  
        else: # If snakes length is less than 1, run this
            if event.key == LISTOFKEYS[0] or event.key == LISTOFKEYS[4]: self.dir = UP                
            elif event.key ==  LISTOFKEYS[1] or event.key == LISTOFKEYS[5]: self.dir = DOWN
            elif event.key ==  LISTOFKEYS[2] or event.key == LISTOFKEYS[6]: self.dir = LEFT
            elif event.key ==  LISTOFKEYS[3] or event.key == LISTOFKEYS[7]: self.dir = RIGHT
rugged root
#

I'm still looking at it

lethal thunder
molten pewter
#

night πŸŒ™

lethal thunder
rugged root
#

!paste

wise cargoBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

lethal thunder
swift valley
#

What's the problem again?

#

Gotcha

#

I haven't done any Python in a while so I'm shaking off some rust haha

#

Unintentional pun :P

whole bear
#

HI @whole bear

#

yes

swift valley
#

@south bone python web development

#

spider snake

#

:P

steady token
#

hello everyone

whole bear
#

The status type (playing, listening, streaming, watching) can be set using the ActivityType enum. For memory optimisation purposes, some activities are offered in slimmed down versions:

whole bear
#

Thx

somber heath
#

Sheep schedule.

#

New Zealand wool has a deserved reputation for quality.

#

I've worked some and it's just a pleasure.

swift valley
#

gtg

whole bear
#

frog kkkkk

woeful salmon
#

same gtg

rugged root
somber heath
#

!if-name-main

wise cargoBOT
#

if __name__ == '__main__'

This is a statement that is only true if the module (your source code) it appears in is being run directly, as opposed to being imported into another module. When you run your module, the __name__ special variable is automatically set to the string '__main__'. Conversely, when you import that same module into a different one, and run that, __name__ is instead set to the filename of your module minus the .py extension.

Example

# foo.py

print('spam')

if __name__ == '__main__':
    print('eggs')

If you run the above module foo.py directly, both 'spam'and 'eggs' will be printed. Now consider this next example:

# bar.py

import foo

If you run this module named bar.py, it will execute the code in foo.py. First it will print 'spam', and then the if statement will fail, because __name__ will now be the string 'foo'.

Why would I do this?

β€’ Your module is a library, but also has a special case where it can be run directly
β€’ Your module is a library and you want to safeguard it against people running it directly (like what pip does)
β€’ Your module is the main program, but has unit tests and the testing framework works by importing your module, and you want to avoid having your main code run during the test

whole bear
somber heath
#

Misplacer beast

gentle flint
rugged root
#

@gentle flint You ever use one of these?

#

SCART

sweet lodge
#

Hi @rugged root

#

πŸ‘

lavish rover
#

Hello citizens of pydis

#

How be y'all

rugged root
#

Good! How's the fam

lavish rover
#

My sister seems to already be sick of me πŸ˜‚

#

We're going to a horse farm or who knows what

rugged root
#

Make sure you pick up some glue while you're there

lavish rover
#

I think I know where you're getting at with that, but I really hope not

livid flame
#

can I use Selenium in Discord ?