#voice-chat-text-0

1 messages · Page 252 of 1

whole bear
pallid verge
#

@somber heath hey man i look into window's task schedular ...working good for me :)

whole bear
#

bro

#

@peak depot sup

somber heath
#

@patent fable 👋

patent fable
#

@gentle flint im supressed from speaking in vc

somber heath
patent fable
#

any idea what it could be?

#

ohh

#

I've sent less than 50 msgs

#

cant verify yet

gentle flint
#

ye

patent fable
#

SO what's the discussion about @gentle flint ?

whole bear
#

plome

gentle flint
#

not much

#

imma go shower soon

scarlet halo
#

nah

#

this hyprland splash is great

somber heath
#

@quasi horizon 👋

peak depot
#

@gentle flint I have so cute cat pics for you today that I even can´t... very very cute

#

but first -> school stuff

brisk bridge
#

hi

rugged root
#

Ooooo, I like this

#

I like the way they phrase that

#

Oh huh

#

Didn't realize MariaDB was a fork

#

Back in a sec

stark river
wind raptor
eager thorn
#

Morning ya'll 🥱

rugged root
#

Sup

eager thorn
#

you keeping it together at work this morning @rugged root kek

rugged root
#

No fires yet

eager thorn
dry jasper
rugged root
atomic imp
#

good morning

rugged root
#

Yo

atomic imp
#

lets go study guys

upper basin
#
def measure(self,
                qubit_indices: int | Iterable[int]) -> None:
        """ Measure qubits in the circuit.

        Parameters
        ----------
        `qubit_indices` (int | Iterable[int]):
            The indices of the qubits to measure.
        """
        # Measure the qubits
        with self.circuit.context as (q, c):
            meas = Measurement(q) | c
echo tartan
#

brb puppies want to go out

atomic imp
#

yes👍

upper basin
#

self.measure(qubit_indices)

#
def measure(self,
                qubit_indices: int | Iterable[int]) -> None:
        """ Measure qubits in the circuit.

        Parameters
        ----------
        `qubit_indices` (int | Iterable[int]):
            The indices of the qubits to measure.
        """
        # Measure the qubits
        self.circuit.measure(qubit_indices, qubit_indices)

        # Set the measurement as applied
        self.measured = True

        # Add the operation to the log
        self.circuit_log.append({'gate': 'measure', 'qubit_indices': qubit_indices})
rugged root
whole bear
#

@wise cargo Is there a code for me to get a gf?

rugged root
#

Co-worker is back here now, so my speaking will be less

#

@molten pewter Suuuuuuup

molten pewter
#

sup

#

Just chilling drinking a coffee, oh hey it's dookie

rugged root
#

Maybe? I'm not overly interested in quantum stuff

#

It's cool but like....

#

I'm very much a practical person

#

Same

#

Rabbit is a grump, and I love him for it

#

Oh right

#

Valentine's month

#

Thank you @viscid lagoon

#

@molten pewter Better that he's willing to budge rather than digging his heels in

#

I like debate, it's arguing that I don't like

#

My preference (most desired to least):
Chillin' > Chat > Discussion > Discourse > Debate > Argument > Fight

rugged root
#

Yep

#

I mean, sure

#

If we're going by that specific definition

#

I'm with admiral on this

#

I'm not saying that we need a Lincoln-Douglas debate here in Pydis

#

But there is something to be said about finding a position and bringing evidence to reinforce it, that's what I would consider a debate

#

Word

#

@echo tartan Yeah sorry, co-worker is back here

#

So I can't speak that often

#

@molten pewter Checks out, your wife is the Kool-Aid man

#

Sure you can

#

Bar the door

#

Make a moat

#

Pull the plug

#

Trip the breaker

#

Let's NOT have this convo, actually

#

Fury

#

I swear to zombie christ

#

This conversation is going tits up

late gorge
#

hey guys how are u doing

molten pewter
rugged root
#

Yet again...
That's so fucking good

late gorge
#

what is going on here

rugged root
#

!stream 239759597609418752

wise cargoBOT
#

✅ @coarse hare can now stream until <t:1706889145:f>.

rugged root
#

It's so good

#

!d collections.deque

wise cargoBOT
#

class collections.deque([iterable[, maxlen]])```
Returns a new deque object initialized left-to-right (using [`append()`](https://docs.python.org/3/library/collections.html#collections.deque.append)) with data from *iterable*. If *iterable* is not specified, the new deque is empty.

Deques are a generalization of stacks and queues (the name is pronounced “deck” and is short for “double-ended queue”). Deques support thread-safe, memory efficient appends and pops from either side of the deque with approximately the same *O*(1) performance in either direction.

Though [`list`](https://docs.python.org/3/library/stdtypes.html#list) objects support similar operations, they are optimized for fast fixed-length operations and incur *O*(*n*) memory movement costs for `pop(0)` and `insert(0, v)` operations which change both the size and position of the underlying data representation.
rugged root
#

@coarse hare I'd recommend using that rather than a regular list.

upper basin
#
poppin() and lockin()
peak depot
#

@gentle flint ready?

#

hiiii everybody in vc

atomic sky
#

@coarse hare you instance the deque like this deque("hello")

rugged root
#

It's going to be one of THOSE days today

#

Lots of running around trying to fix stuff

#

Gonna get my steps in

echo tartan
#

then you get to treat yourself afterwardz

upper basin
rugged root
#

I'm still enjoying myself, though

#

I only get stressed when others are inconvenienced. I want to make sure our folks are back up and running as quickly as possible.

#

If they're on the top shelf, would they be high steaks?

upper basin
#

Weird flex but ok.

#

Sayonara, I'm gonna go watch Hazbin hotel.

echo tartan
rugged root
#

Pretty

echo tartan
whole bear
#

@naive kestrel 👋

naive kestrel
whole bear
#

!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
naive kestrel
#

yes i know

whole bear
#

ok

rotund peak
#

hi, can you help please, the code does not want to output the inline button in any way, look what's wrong?

rotund peak
#

Ok srr

naive kestrel
#

with the x

#

yes

whole bear
#

Are you a pokemon fan?

naive kestrel
#

sure

#

i've never heard of php thinking

whole bear
naive kestrel
whole bear
#

Meaning are you a python genius?

naive kestrel
#

no

rugged root
stark river
rugged root
frozen owl
#

hey

#

can you hear me

#

ugh

#

my mic isnt picking up

austere gull
#

nope :p

stark river
#

discord issue. rejoin

frozen owl
#

ugh

#

check his bio lol

rugged root
#

Back in a sec, friggin computer forgot how to see my other monitor

coarse imp
#

yo I only opened pycharm and need help

#

i would ask verbaly

#

but i need messages (40 more) and 3 more days

#

but

#

how can i get rid of this warning?

austere gull
coarse imp
#

whats a static method?

austere gull
#

will it require an instance of the object?

coarse imp
#

nope

#

it won't

austere gull
#

add staticmethod annotation then

#
@staticmethod
def start():
  #...
coarse imp
#

with the at symbol?

#

thx

#

😄

austere gull
coarse imp
#

thank you 😄

austere gull
#

no problem

coarse imp
#

nice

#

works

#

thx again

somber heath
#

@slow crown @frigid karma 👋

#

@hot edge 👋

coarse imp
#

now what to do with this one

#

it need to have object

#

of itself

#

@austere gull

austere gull
#

ah all that means is you're not using self yet

coarse imp
#

oh

austere gull
#

once you use self, that warning will go away

coarse imp
#

ok ill try

frigid karma
#

Hi guys! I'm new here and also nooby learning Python. Any recommendations on where to start?

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.

coarse imp
#

for me it was trying anything i wanted

#

so try thinking of something

#

and then try to build it

#

also start with something easy

somber heath
#

YouTube, Corey Schafer, playlists, Python for Beginners.

coarse imp
#

eeeh

austere gull
#

even if its super simple

coarse imp
#

exactly

austere gull
#

once you learn a concept, i recommend trying it out soon

coarse imp
#

i started C# with tutorials and learned nothing

frigid karma
#

I am RPA developer, anything related to that where I can combine both fields?

austere gull
#

actually writing the code you learn will help solidify those concepts in your brain

coarse imp
#

then came to python and started with some easy thing and slowly made progress to the point that now Im trying server stuff (which is something i despise) and also made discord bot @frigid karma

slow crown
frigid karma
slow crown
#

im kinda scared to begin

coarse imp
#

dont be

coarse imp
coarse imp
#

yes

#

its nice

#

I liked it

somber heath
#

Discord bots aren't a beginner project.

coarse imp
#

true

somber heath
#

Hello, Char.

coarse imp
#

sorry

#

for that one

coarse imp
#

@somber heath is right

austere gull
#

CLI todo list

#

CLI = command line interface

coarse imp
#

lol

austere gull
#

and the beauty of a todo list is you can iterate on it so much

coarse imp
#

well actually it might be easy

slow crown
#

ill try a to do list

#

ty

coarse imp
#

good luck!

slow crown
#

you too

coarse imp
#

hope you find it fun!

#

thx

#

and get into programming

austere gull
coarse imp
#

nice

austere gull
#

my main motivation for learning how to code is bot for my discord server :p

#

initially i was selfhosting a premade bot

coarse imp
#

i started with calculator (CLI one) and regretted everything lol

somber heath
#

Some people do select Discord bots as their first programming project and are successful at it.

They are the exception rather than the rule.

The danger of selecting something that is several steps beyond your skill level is that you may render yourself disheartened with your lack of ability to progress.

austere gull
#

but then i started to edit the code to fulfill my needs

#

then i started writing my own parts for the bot

#

to writing my own from scratch

#

then it kinda went on from there and im proficient in stuff now lol

austere gull
#

lotta concepts that you're thrown into straight away when tryna make a discord bot

somber heath
#

It's fine to have Discord bot as a longer-term goal, but you should be working up to it step by step, rather than diving straight in the deep end.

coarse imp
#

yo @austere gull how is it that it shows the webstorm icon (on discord) and mine doesnt

#

for you

austere gull
coarse imp
#

thx

austere gull
coarse imp
#

👍

#

wait

#

how do i install

#

into pycharm

wind raptor
#

!stream 717749310518722691

wise cargoBOT
#

✅ @whole bear can now stream until <t:1706900935:f>.

coarse imp
#

@wind raptor what is that?

somber heath
# coarse imp into pycharm

I don't use PyCharm, but it may be a case of installing it normally with the installer from Python.org, then selecting it from its installed location in the PyCharm settings interface.

#

This is a guess.

coarse imp
#

when i downloaded it it downlaoded a zip

#

so

#

idk

#

ill try in pycharm

#

find it

somber heath
#

Hi Segfault.

#

As zip would be atypical.

#

An installer exe would be more typical.

#

What operating system are you using?

coarse imp
#

ik

somber heath
#

@copper grotto 👋

copper grotto
#

hii

coarse imp
#

@austere gull how do i do it 😅

#

?

#

hi

austere gull
coarse imp
#

the discord integration

austere gull
#

install plugin

coarse imp
#

?

#

huh

austere gull
#

and u should be pretty much good

coarse imp
#

huhhhh?

#

how lol

rugged root
#

@somber heath ❤️

austere gull
#

File > Settings > Plugins

#

search for discord integration and install

coarse imp
#

okk

peak depot
coarse imp
#

cute

somber heath
rugged root
#

I missed that

slow crown
#

is automate the boring stuff a good resource for a complete beginner?

coarse imp
#

ah

#

@austere gull got it

austere gull
#

so prolly

coarse imp
#

niceeeeee

#

works

upper basin
#
'from .bell_state_preparation import BellStatePreparation\nfrom .computational_basis_state_preparation import ComputationalBasisStatePreparation\nfrom .distributions import PMF, GaussianMixture, GaussianMoments\nfrom .exponential_state_preparation import ExponentialStatePreparation\nfrom .ghz_state_preparation import GHZStatePreparation\nfrom .metrics import Metrics\nfrom .state_preparation import StatePreparation\nfrom .state_preparation_abc import (\n    DEFAULT_INPUT_NAME,\n    DEFAULT_OUTPUT_NAME,\n    StatePreparationABC,\n)\nfrom .uniform_distibution_state_preparation import UniformDistributionStatePreparation\nfrom .w_state_preparation import WStatePreparation\n'
#
import classiq.interface.generator.state_preparation
austere gull
#

@whole bear good job on the dub

upper basin
#

StatePreparationABC

#

I want this

somber heath
#

If you were writing this as a C project, would there be a StatePreparation.h?

lavish rover
#
>>> import numpy
>>> inspect.getmodule(numpy)
<module 'numpy' from '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/numpy/__init__.py'>
rugged root
somber heath
#

@upper basin What operating system are you using?

whole bear
#

@wind raptor Can give me again?

stark river
#

grep it

somber heath
#

You should be able to look at the file browser settings to enable the ability to see hidden folders.

#

If that's an issue.

coarse imp
#

@rugged root why do people here have to have stream perms?

rugged root
#

We've had issues with people streaming porn and other inappropriate content

coarse imp
#

oh

rugged root
#

Yeeeeep

coarse imp
#

i see

#

Now I understand

#

xd

#

thats bad

rugged root
#

Yep, especially with a server full of minors

coarse imp
#

yeah

upper basin
#
"C:\Users\A.C.EA\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyomo\core\base\component.py"
coarse imp
#

win + r

#

then write %appdata%

rugged root
#

%appdata%

lavish rover
#

C:\Users\A.C.EA\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyomo

coarse imp
#

bye for now

somber heath
#

.local

#

Among others.

lavish rover
rugged root
#
from classiq.interface.generator.state_preparation import StatePreparationABC
upper basin
#
import classiq
import inspect

print(inspect.getmodule(classiq))
rugged root
#

%appdata%\Python\Python312\site-packages\classiq\interface\generator

upper basin
#

!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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

upper basin
somber heath
#

@wicked marsh @tame pumice 👋

tame pumice
#

Hello!

#

You are making your life complicated guys.

#

Just use Docker or Podman. It solves all paths issues.

somber heath
#

@naive kestrel 👋

naive kestrel
lavish rover
#

code "C:\Users\A.C.EA\AppData\Local\Programs\Python\Python312\Lib\site-packages\classiq\"

tame pumice
#

I always fly business class… on the company payroll.

wicked marsh
tame pumice
#

This one’s expensive.

#

You can get some small one for 100 of thousands dollars.

#

With a yearly maintaining cost of around one million.

wicked marsh
#

Its hitting 20pm here, got to jump to "evening shift" - have a nice day gys/grls.

austere gull
peak depot
#

Trump kitty

naive kestrel
#

aww

stark river
#

shouldn't this channel be named voice-chat-0-text

#

git push rename

upper basin
#

0.36.1

#

0.9.3

somber heath
#

@turbid tree 👋

turbid tree
#

Hi

#

9 ppl in voice
but noone talking

wind raptor
#

¯_(ツ)_/¯

#

Most of us are programming or doing things while in chat, I'm sure.

#

I know I am

somber heath
#

@woven bough 👋

woven bough
turbid tree
#

Ah chess

somber heath
#

@timber jasper 👋

somber heath
#

@lean jetty 👋

turbid tree
#

How good you are at chess

#

Hi

#

500?

#

Blitz?

#

alr

#

@wind raptor do you also play chess?

#

What's his raiting?

#

Wanna play a match?

#

I'm also 1200 in blitz but 1400 in rapid

whole bear
#

knock me out

#

no sexy coding allowed

#

you mean autocomplete

#

heh mindful guy

turbid tree
#

@whole bear
Are you good at python?
i recently started learning python, watching a course on YouTube

#

What should i do next to improve after the course?

whole bear
#

@royal radish 👋

royal radish
turbid tree
#

@whole bear
What programming language do you know ?

#

so why are you here

#

are you learning new programming language?

#

What's your id?

#

send your id , i have an alt acc to sac elo for you 🙂

whole bear
#

It's bongozard

turbid tree
#

Play a match , i will help you find good moves

#

@whole bear watch this
this a good opening for beginners

coarse imp
#

@whole bear bro those decibels 😭

#

my ears are dead

#

you said something and it blew my ears

#

no dont go to 0

#

but damn 💀

#

nono

#

its okay now

#

but the moment wasnt tho

#

did i hear 69 correctly?

#

😏

#

yeaahhhh

#

thats nice

hollow grail
#

@plush flax cs

coarse imp
#

yo cz?

hollow grail
#

ne

#

vubec

coarse imp
#

ne

#

fr

hollow grail
#

fr

coarse imp
#

ani trochu

hollow grail
#

ani kousíček

coarse imp
#

back to eng

hollow grail
#

proč

coarse imp
#

protože si nejsem jistej jestli to tu je povolený

#

vím že se někde za tohle dokonce banuje

hollow grail
#

takže nemužeme mluvit česky jo :D

coarse imp
#

někde ne

#

tady asi jo

turbid tree
#

Yeeees

plush flax
#

jo je

#

broskyy

coarse imp
#

ok nice

#

sorry

turbid tree
#

Techno

plush flax
#

anglicky

coarse imp
#

thxx

turbid tree
#

bw god

coarse imp
#

I would talk too but Im too new

hollow grail
#

Hošani dneska jsem byl ownit fitko

plush flax
#

jaaj

whole bear
#

@onyx isle 👋

coarse imp
#

@whole bear thank ya but Im going back to eng

hollow grail
#

no

coarse imp
#

ik

#

i can recap for you our convo

#

if you want

#

kk

hollow grail
#

muže si přestat kurva zpívat

coarse imp
#

bruh

#

hlavně to nepiš anglicky

plush flax
hollow grail
#

nebudu

coarse imp
#

to je dobře

hollow grail
#

brb

#

jdu srát

coarse imp
#

yo @whole bear try to read out loud "řízek" pls

plush flax
#

@hollow grail ty programujes?

coarse imp
#

jj

#

ty

hollow grail
#

seru momentálně

coarse imp
#

oh

#

to nebylo na mě

#

xd

hollow grail
coarse imp
#

bruh

#

no

hollow grail
#

:D

coarse imp
#

😄

hollow grail
#

očividně nemá moc zájem

coarse imp
#

ale má

#

trastuj

#

thx

hollow grail
#

xd

coarse imp
#

its like sh + r

#

the ř is like sh + r

#

kind of

hollow grail
#

rajs

#

ríže

#

close

coarse imp
#

yeaah that close

hollow grail
#

neříkej mu

coarse imp
#

jak je šnicl

#

xd

#

wait up please

#

its

plush flax
#

to snad ani neexistuje v en

coarse imp
#

well

turbid tree
#

feels like that doesn't have a good meaning

coarse imp
#

nn neexistuje

hollow grail
plush flax
#

meat idk

#

crusty meat

whole bear
#

@surreal verge 👋

surreal verge
#

i am voice verified this is the end for everyone in this voice channel

coarse imp
#

@whole bear its like chicken with a crust just like kfc but its bigger

#

imma post a pic

#

@whole bear

plush flax
#

iam muted

whole bear
#

!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
hollow grail
coarse imp
#

he's new

plush flax
hollow grail
#

no

coarse imp
#

he wasnt here for 3 days

hollow grail
#

NO

#

NO

coarse imp
plush flax
coarse imp
#

@whole bear

hollow grail
#

nemam zajem

#

lulw

coarse imp
#

i need some mod to artificially give me the permissionnnnn

#

😭

hollow grail
#

nemusíš

coarse imp
#

ik

hollow grail
#

stačí napsat 50 správ

coarse imp
#

ne

#

dege

whole bear
coarse imp
#

ik

#

i heard you

whole bear
turbid tree
#

The end of every one in the voice channel left

coarse imp
#

čum ty musíš mít 1. 50zpráv být online 30minut a být na serveru alespon 3 dny

#

nonono

#

i was explaining

hollow grail
#

hes not were just talking bro

coarse imp
#

you can transalte

#

@whole bear

#

czech

plush flax
#

czech

hollow grail
#

CZECH

coarse imp
#

yo dont ping anyone

#

k

hollow grail
#

@hollow grail

coarse imp
#

i am not guilty

#

😄

#

also we can hear you

turbid tree
#

Идиотс

coarse imp
#

nice

plush flax
#

?*

hollow grail
coarse imp
#

@whole bear you staying in the vc?

hollow grail
#

ja jdu

#

cc

coarse imp
#

bye

plush flax
#

bye @hollow grail

hollow grail
#

o/

turbid tree
#

Why didn't you take the rock?

#

push pawn

#

nooo

#

Knight e3

#

Noooooooooo

#

Bruuuuh

#

don't blunder your queen like that

whole bear
#

@rugged root Can u give me stream perms pls?

turbid tree
#

You had mate here

#

a5 was mate

#

I don't blame you , I'm telling you to learn

#

solve checkmate patterns in lichess, it'll help you find mates

plush flax
#

so, i go, bye

turbid tree
#

gg

#

mate

#

take the queen

#

Mate

#

Yeeeees

#

Congratulations

#

Bye

#

cya

coarse imp
#

bye

#

@whole bear

#

cya soon (i hope)

hollow grail
#

hi

coarse imp
#

hi

#

you program?

#

@hollow grail

hollow grail
#

yes

#

how about you?

#

??

coarse imp
#

i do

#

what are your projects (current)

#

??

hollow grail
#

Discord bots

coarse imp
#

nice

#

i made one too

hollow grail
#

nice

#

what are your projects rn?

#

?

coarse imp
#

Im playing with servers in python rn

#

i see @hollow grail

whole bear
#

@visual hinge !voice

atomic imp
#

lets go play chess men

feral sky
#

Hello

somber heath
#

@pulsar hatch @feral sky 👋

feral sky
#

How are you?

somber heath
#

@stiff matrix 👋

feral sky
#

I think I'll be able to use voice chat tomorrow.

#

Then I'll be able to talk 😅😅

#

Where are you from?

#

@somber heath

somber heath
#

@kind moth 👋

feral sky
somber heath
#

Would you like me to tell you or would you like to guess?

feral sky
#

I can try to guess

#

USA?

#

OK

#

Canada?

#

OK

#

Wait a minute

#

I have no idea where you are from 😅😂🤣

#

Y

#

My God

#

I would never have guessed 🤣🤣🤣

#

Do you speak English? In Australia?

#

Wtf

#

Now want to try and guess where I'm from?

feral sky
#

Ok

#

Are you thinking??

#

No

#

Try to guess my country

#

No

#

I am From South America

#

But try to guess the country

#

Yes

#

I am from Brasil

#

I study english

#

But it's very difficult to understand

brisk bridge
#

hi

#

good morning

feral sky
#

Yes

#

Wait

#

Do you speak spanish?

#

😂😂

#

Can I transmit screen?

#

Understand

#

Can I do it on the live coding channel?

#

Oh my God

#

I wanted to broadcast screen 😔😔

#

What?😂😂

#

I wanted to transmit so I could have help studying

#

As a Brazilian would say "PAIA"

#

I don't know the translation into English 😂😂

#

But in English it's like "wow, very bad/boring"

#

Try saying "PAIA"

#

🤣🤣🤣

#

Nice

#

Try saying "FI DA PESTE"

#

It is a word widely used in the northeast of Brazil

brisk bridge
#

why do i get this error when i use get but not when i use bracket syntax?

Argument of type "Path | None" cannot be assigned to parameter "template" of type "Path" in function "return_template"
  Type "Path | None" cannot be assigned to type "Path"
    Type "None" cannot be assigned to type "Path"PylancereportGeneralTypeIssues
return_template(self.pages.get("/500"))
return_template(self.pages["/500"])
feral sky
#

I didn't understand

#

Speak a little slower

somber heath
#

!e py d = {'key': 'value'} print(d['key']) print(d.get('key')) print(d.get('not a key of d'))

wise cargoBOT
#

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

001 | value
002 | value
003 | None
feral sky
#

When there are no double quotes, is it string too?

brisk bridge
#

weird error tbh

#

i think bracket syntax raises error instead of None?

#

!e

p = {"h": 1, "b": 6}

p["h"]
p["69"]
wise cargoBOT
#

@brisk bridge :x: Your 3.12 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 4, in <module>
003 |     p["69"]
004 |     ~^^^^^^
005 | KeyError: '69'
feral sky
#

🤣🤣🤣

brisk bridge
#

!e

p = {"h": 1, "b": 6}

p["h"]
print(p.get("69"))
wise cargoBOT
#

@brisk bridge :white_check_mark: Your 3.12 eval job has completed with return code 0.

None
brisk bridge
#

ye i found difference

somber heath
#

!e py d = {'key': 'value'} a = d.get('key', 'abc') b = d.get('not a key of d', 'abc') print(a) print(b)

wise cargoBOT
#

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

001 | value
002 | abc
brisk bridge
#

kk, thanks for help

somber heath
#

!d dict.get

wise cargoBOT
#

get(key[, default])```
Return the value for *key* if *key* is in the dictionary, else *default*. If *default* is not given, it defaults to `None`, so that this method never raises a [`KeyError`](https://docs.python.org/3/library/exceptions.html#KeyError).
feral sky
#

I studied Python a little more but I couldn't understand it 😐

brisk bridge
#

!d mapping

wise cargoBOT
brisk bridge
#

never heard of mapping

somber heath
#

.

#

There's a speck of knowledge.

#

.

feral sky
#

But I learned some things 😏

somber heath
#

There's another.

#

.

#

And another.

#

Now you have ...

#

Three specks.

feral sky
#

I wanted to tell you what I learned

somber heath
#

Soon, ... ... ...

feral sky
#

But by text it will take time

#

I wanted to show

#

But it can't transmit screen 😔😔

somber heath
#

Later,

.........
.........
.........
.........
.........
.........
.........```Etc
feral sky
#

Like the first thing I learned was to print something on the console

#

What is used

somber heath
#

Mhm.

feral sky
#

print("Hello world")

somber heath
#

print and something to print

feral sky
#

Is correct?

somber heath
#

In that case a string

feral sky
#

There is also another way

#

Which is so

somber heath
#

sys.stdout?

#

🤮

feral sky
#

name = "Gabriel"
print(name)

somber heath
#

Assignment. mhm.

feral sky
#

And so it continues

#

Too bad you can't even send audio 😡😡😡

somber heath
#

You assign a variable, a named signpost/reference/proxy to an object, here a string.

feral sky
#

I got this

somber heath
#

You then refer to print, a variable that points to the print function, and "call" it, causing it to be run.

#

During this call, you give it the name variable, which represents the string, as argument.

somber heath
#

!e py import sys sys.stdout.write('Disgusting alternative to print.\n')

wise cargoBOT
#

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

Disgusting alternative to print.
feral sky
#

Bro

#

Send a message here

#

Pls

somber heath
#

Righto.

feral sky
#

Hmm

#

My Discord is not notifying

#

And notifications are on

somber heath
#

I've had learners whose professors insisted they print in this way in Python, "BeCaUsE tHaT's HoW iT lOoKs In C."

#

"wE dOn'T wAnT tO cOnFuSe OuR sTuDeNtS."

feral sky
#

But is it correct?

#

The way I wrote it?

somber heath
#

Also those professors: "uSe camel_Case fOr NaMiNg ThInGs In PyThOn Or YoU'lL gEt A fAiLiNg GrAdE"

somber heath
feral sky
#

Aaaaa

#

Now I get it

somber heath
#

Unless you also wanted to add a comma and a period in the string.

#

As doing so would be even better.

feral sky
#

Right

somber heath
#
print('Hello, world.')```
feral sky
#

It's likely that today I will meet the requirements to carry out the verification 🙌🏻🙌🏻

somber heath
#

Useless details.

somber heath
#

Mind you, details can be important. Specifics, etc. They can make a difference between a program working and a program killing someone.

feral sky
#

At six o'clock in the morning

#

I think I can do it now

somber heath
#

Give it a whirl.

atomic sky
#

What's going on in here

feral sky
#

Six o'clock in the morning in Brazil

#

I forgot that detail

#

Opalmist

#

Could you tag me

#

Pls

somber heath
#

@feral sky

feral sky
#

So notified

somber heath
#

@small elk 👋

#

@austere hornet 👋

austere hornet
#

And I'm here.

#

It looks like I've hidden most channels.

#

I'm going to sound young. Cause I am. So I'm stalling...

#

@whole bear I'm good thanks 😄

brisk bridge
#

hi

#

i finally made a achievement for me lol by writing 422 lines of python code 😂

austere hornet
#

This is motivating me to start coding…

brisk bridge
#

coding is fun

#

its first time i wrote that much code

whole bear
#

@wind raptor Are you free?

austere hornet
#

I'm just never motivated.

#

Actually that's not true.

#

This voice chat full of coders better than me is motivating me.

brisk bridge
#

motivation is temporary

#

discipline is permanent

austere hornet
#

Discipline for study though.

#

I'm still in high school.

#

I'm going to start grinding some questions on ORAC.

feral sky
#

Kkkkkk

#

Foda alek

brisk bridge
#

me too in high school

austere hornet
#

Ohh?

#

What grade?

brisk bridge
#

9

austere hornet
#

Oooh

#

I'm Grade 8

brisk bridge
#

oh

feral sky
#

I'm grade 3 ;-;

austere hornet
#

Sure...

whole bear
feral sky
#

Não

#

não

whole bear
#

if not I will have to report you

feral sky
#

No

brisk bridge
#

hmm 3 grade student on discord

feral sky
#

What's the problem?

brisk bridge
#

discord doesn't allow small children i guess

whole bear
feral sky
#

But I'm not small ;-;

feral sky
whole bear
#

What's your age?

feral sky
#

13

whole bear
#

Ok

feral sky
#

I AM from Brasil

#

Here is different

#

Oh, if you're worried because you're using discord

#

I have permission from my parents

#

I find this very funny 🤣🤣🤣

#

Speak slower

#

It's hard to understand you

#

@somber heath

brisk bridge
#

guys is tuple really fast than list in sense, idk if its true, i have heard of it?

feral sky
#

Repeat more slowly please

austere hornet
whole bear
feral sky
#

In Brazil, I can enter prohibited places just because I am accompanied by my father

austere hornet
#

This is a global organisation.

feral sky
#

But what difference will my age make?

#

I've been using Discord for 4 years

#

I never had any problems

austere hornet
#

It's for your safety.

feral sky
#

Look at this

austere hornet
#

Yea, all of us can see.

feral sky
#

I have been using it since 2020

austere hornet
#

We all know.

feral sky
#

Then

#

I never had any problems

austere hornet
#

Well sure.

#

End of convo ig.

#

It doesn't really matter to us.

feral sky
#

OK

somber heath
#

@gleaming locust 👋

gleaming locust
#

👋

#

Ello

#

Ahh that'll buff right out

#

A lil spit shine and we can get'er goin

chilly magnet
#

hello

gleaming locust
#

👋

chilly magnet
#

do you know if i can stream here?

gleaming locust
#

I don't know, I like bagels though

chilly magnet
#

i have to ask a mod to let me stream right?

somber heath
# chilly magnet do you know if i can stream here?

Streaming permissions are granted on a temporary basis by voice-regular moderator-level users and above at their discretion upon request. The best time to ask is when you happen to both be in the voice chat.

chilly magnet
#

alright

gleaming locust
#

Gotta get NYC fresh bagels

#

Yeah they are thicc after a day

brisk bridge
#

guys why this code is making script tag self close, i want it to have open and close tag

def fix_script_tags(template: str, scripts_dir: Path) -> str:
    """
    Fix the src attribute of script tags

    Arguments
    ---------
    template: str
        The template to fix
    scripts_dir: Path
        The directory of the scripts

    Returns
    -------
    str
        The fixed template
    """
    tree = ET.fromstring(template)
    script_tags = tree.findall(".//script[@src]")
    for script_tag in script_tags:
        src_attribute = script_tag.attrib["src"]
        if src_attribute.startswith("../") and scripts_dir.stem in src_attribute:
            script_tag.attrib["src"] = "./" + src_attribute[3:]
    return ET.tostring(tree, encoding="unicode")
gleaming locust
#

Bugs are just protein

#

Ants have a weird battery acid taste

#

Yeah

#

They somtimes get in honey

#

And you don't notice until it's to late....

#

Very sad day when that happens

#

I used to own bees

#

All my bees flew away

#

Nice!

#

You need the queen to get there

#

The best way is to get free bees is to find a swarm

#

The sound is nice to

#

Love peanut butter

#

Yeah it's always nerve racking knocking a swarm off a branch into a trash bag or beehive

#

Yeah, it's fun trying to find the drones(males) in the swarm

#

YouTube academy is the way to go

#

I hate wasps though

#

I once stepped on a yellow jack nest,.... Hundreds of stings everywhere

#

Getting stung in your pants is not fun

#

Act stupid, be smart, deception is key

austere hornet
gleaming locust
#

If you're smart, the next step is to be wise

#

Thats my philosophy anyways

#

:0

#

Autistic acoustic

#

Gold

#

Au

#

Touch of the tizzum

#

Oh ok

#

I won't make fun of you 👋 I had bees in my pants

whole bear
#

im autistic

gleaming locust
#

I'm on the spectrum to

whole bear
#

real

austere hornet
#

Is that really appropriate?

#

I don't find this humourous if that's what this is meant to be.

somber heath
#

"A wise man knows himself to be a fool."

gleaming locust
#

It's easier that way mate

#

Less pressure

#

Ay I got it to, on the low end

#

I work in a kitchen so my social skills are good, but it's still hard

#

Yeah kitchen work helps bc everyone is brutal

austere hornet
#

I'm still waiting for the explanation of why he is smart.

gleaming locust
#

It's cool when you can make it into a game or a sandbox

#

Like doom

#

The virtual environment is great for testing camera angles

somber heath
#

@lucid lily 👋

gleaming locust
#

What's that one game where perspective is everything

#

Sublime*

austere hornet
#

Superliminal

gleaming locust
#

That it I think

#

Yeah that one!!!

#

Super cool

somber heath
gleaming locust
#

I just joined recently lol

#

Oh I got it lol

brisk bridge
#

guys why i getting this error?

  File "C:\Users\dell\Desktop\projects\python\vivid\vivid\utils\common.py", line 157, in fix_style_tags
    tree = ET.fromstring(template)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\dell\AppData\Local\Programs\Python\Python311\Lib\xml\etree\ElementTree.py", line 1338, in XML
    parser.feed(text)
xml.etree.ElementTree.ParseError: mismatched tag: line 6, column 3
def fix_style_tags(template: str, styles_dir: Path) -> str:
    """
    Fix the href attribute of style tags

    Arguments
    ---------
    template: str
        The template to fix
    styles_dir: Path
        The directory of the styles

    Returns
    -------
    str
        The fixed template
    """
    tree = ET.fromstring(template)
    for style_tag in tree.findall(".//link[@href]"):
        href_attribute = style_tag.attrib["href"]
        if href_attribute.startswith("../") and styles_dir.stem in href_attribute:
            style_tag.attrib["href"] = "./" + href_attribute[3:]

    return ET.tostring(tree, encoding="unicode", method="html")
#

but my data is correct

#

hmm

gleaming locust
austere hornet
#

The problem where I need to use Binary Search @somber heath jam_cuneiform_this

somber heath
#

@crimson rose 👋

crimson rose
#

Hi

crimson rose
somber heath
crimson rose
somber heath
#

If you're wondering why you can't unmute, you can read about the voice gate system in that channel.

crimson rose
somber heath
#

As you wish.

crimson rose
#

👍

gleaming locust
#
whole bear
#

hello lads

#

sup

sly goblet
#

someone can give me link to python chat, im stuped and get lost

upper basin
#

wdym?

whole bear
#

boobies

wind warren
#

5318008

upper basin
#
pip install classiq==0.36.1
unkempt narwhal
#

😮

unkempt narwhal
vocal basin
#

compound assignment has no associativity

#

though I guess in something like C it might

#

(definitely not in Python)

#

((actually not sure if that table is about Python at all))

somber heath
#

@storm robin 👋

storm robin
#

Hi

scarlet halo
#

i made this powerpoint for my school with reasons why they should switch to linux

#

now i dont know who to send it to

somber heath
#

Lead by example.

scarlet halo
#

wha

somber heath
#

Use a pretty-looking linux. People are simple creatures.

whole bear
#

@willow lynx What did you say?

scarlet halo
#

i dont know if thats so good for an example

somber heath
#

I think a Powerpoint is a lacklustre idea.

#

I support the notion of Linux propogation.

#

@hot bloom 👋

whole bear
#

This is the first message to me

somber heath
#

@whole bear 👋

whole bear
#

Hello @somber heath

#

I don't have 50 messages.

#

There is the reason.

upper basin
#

death better stay a hundred miles away from you mate

whole bear
#

What does it mean?

upper basin
#

I was referring to Opal

whole bear
#

Ah, sorry

#

Okay

upper basin
#

He's too beautiful and wise to die

#

You're good, nw

#

and WISE

whole bear
#

@upper basin

#

Do you know Python well?

upper basin
#

You're overcomplicating it char

whole bear
#

Can you check your inbox, please?

upper basin
#

He is insightful, empathic, and often makes good decisions, ergo I'd say he is wise.

upper basin
#

Put your message here.

whole bear
#

Why?

#

I can't write here

upper basin
#

You can

#

put your code here

#

!code

whole bear
#

I can understand you

wise cargoBOT
#
Formatting code on Discord

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.

For long code samples, you can use our pastebin.

somber heath
#

@keen abyss 👋

upper basin
#

or if it's too long use paste bin

keen abyss
#

hello

upper basin
#

!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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

whole bear
#

@upper basin it is about crypter

upper basin
#

I do not know what that is.

keen abyss
#

@whole bear wna play

#

okat

somber heath
#

@dire swift 👋

whole bear
#
Chess.com

Login to your Chess.com account, and start enjoying all the chess games, videos, and puzzles that are waiting for you! If you have any issues while logging into your account, do not worry. You can recover your password, or drop us a message and we will gladly help.

dire swift