#voice-chat-text-0

1 messages · Page 863 of 1

vivid palm
#

rabbit the rabbi

whole bear
#

someone let a fucking dolfin in the vc?

amber raptor
whole bear
#

LOL

gentle flint
whole bear
#

a kick with more pixels

amber raptor
gentle flint
#

‫pity it wo‫n't be merged

vivid palm
#

who making fun of Jake >:|

gentle flint
#

everyone

#

(except you)

#

@amber raptor were we too horrifying?

gentle flint
strong arch
gentle flint
#

I'm the smartest mosquito-catcher who has ever lived

#

view my prey

strong arch
vivid palm
#

too much imagery

gentle flint
#

it's just a mosquito

crimson copper
#

do you not have mosquitos where you live?

#

wtf?

#

but why

#

what the fuck, it's like 20 dollars here

#

lol, you have to have real lessons

vivid palm
#

WHAT

#

KILL IT

crimson copper
#

no, they don't

#

they literally do nothing

gentle flint
#

poor mosquito tho

vivid palm
#

NO

#

you have too much compassion my friend

crimson copper
#

the mosquito will not return the favor

gentle flint
#

true

crimson copper
#

they literally do nothing

vivid palm
#

no they're actively evil

crimson copper
#

ok, what do they do, then

gentle flint
#

what method shall I use

crimson copper
#

heat up the glass

gentle flint
#

no blowtorch

vivid palm
#

omg you're sick lol

crimson copper
#

stove

gentle flint
#

paper'll burn

crimson copper
#

actually don't, you'll probably shatter it

gentle flint
#

OH

#

I can microwave it

vivid palm
#

😂😂😂😂😂😂poor rabbit

#

omg guys

#

look up what year boomers were born

crimson copper
#

shooooot, microwave that

gentle flint
#

if I microwave it the glass and paper will survive

crimson copper
gentle flint
#

but the mosquito will cook

crimson copper
#

rabbit is a boomer

crimson copper
crimson copper
#

or a vacuum pump

#

no, that guy is a mosquito simp

#

isn't jake like 10

#

hey, that's 0b11111

#

mint chocolate chip is in the top 2 flavors

gentle flint
crimson copper
#

"veterans may struggle with the pace and complexity"

vivid palm
#

??

crimson copper
#

??

gentle flint
#

!!

#

more floods

#

this is what happens when youu get loads of rain in hills and everyone installes tiled terraces instead of lawns

vivid palm
#

heavy rains are rip

#

s korea

#

last year

#

apparently it gets like that every year idk how they function

crimson copper
#

(Note: curses uses the American spelling ‘color’, instead of the Canadian/British spelling ‘colour’.
🇺🇸 🦅 🔫

#

.topic

viscid lagoonBOT
#
**What are your hobbies other than programming?**

Suggest more topics here!

crimson copper
#

coding

gentle flint
#

writing series of steps for an interpreter to follow

oak sorrel
#

Anyone willing to look at my screenshare and help me troubleshoot this error with unittesting?

pliant sapphire
#

Does anyone know how to make a token without accessing a route
For example in my application of two types of user. Client user and admin user. both the client token and the ADM token are able to access all end-points
How do I make the client's token not be authorized in the user's route

stuck furnace
#

Hey 👋 What you working on?

#

(sorry if you just explained it lemon_sweat )

#

One sec. Dealing with something...

#

Sorry, who was asking for streaming permissions?

stuck furnace
#

!stream 255840559678095370

wise cargoBOT
#

@strong arch

✅ @strong arch can now stream.

stuck furnace
#

Technical debt guys 😄

#

Ohh nice.

#

Congrats!

#

You sounded fine to me @tiny socket

#

Jake, if you have time and want to improve your SQL, look up Stanford's databases courses on Edx.org

frigid panther
stuck furnace
#

Yep 👀

#

(same as Alec)

frigid panther
#

yes

stuck furnace
#

More like I need to speak on mic more lemon_sweat

stuck furnace
#

Ah 😄

#

Hello @terse vigil

#

Maybe go for a walk?

#

Ah right

#

Yeap 😄

#

Although I'm a lot more organised than I once was.

frigid panther
#

I will cya guys later, more assignments to complete 😞

stuck furnace
#

Good luck!

#

UK yep

#

Yep 😄

#

My sleep schedule is just... yeah.

#

Ohh, I thought you meant an OS scheduler.

#

I was thinking that's a bit of a challenging assignment to give Jake right now 😄

#

Maybe if there's a product key on the packaging.

#

Ah right.

#

Install Linux 👀

tiny socket
stuck furnace
#

You have a quest?

#

🍿

#

What did you do Jake? 😄

#

It's not that great really tbh...

#

I don't do it because I know I will mess up badly.

#

Alec, you're a lead so you're technically above moderator 🤔

#

I used Open CV for a project at uni... but I've forgotten it entirely.

#

So you have a camera attached? And you need to get frames taken at a specific time?

terse vigil
#

they're taking....

#

talking

strong arch
#

0xFFFFFFFF

terse vigil
#

i'm using open CV with some existing vidoe files

stuck furnace
#

Yeah, each pair of hex digits is a byte.

#

A single hex digit is called a 'nibble' 😄

strong arch
stuck furnace
#

Oh yeah. I love writing a good recursive descent parser.

#

Was this before or after you became a helper here, Jake? lemon_glass

dense ibex
#

before

tiny socket
past pawn
#

we're talking about brainfuck?

chars = '+-<>.,[]'

def brainfuck(code,input=input):
    from collections import defaultdict as d
    l=input==__builtins__.input
    if not l:input=lambda i=1:input.pop(i-1)
    a,o=d(int),''
    i=p=t=0
    for c in iter(lambda:code[p],''):
        def __0(i,_):
            a[i]+=1
            a[i]%=256
            return i,_,0
        def __1(i,_):
            a[i]-=1
            a[i]%=256
            return i,_,0
        def __2(i,o):
            o+=chr(a[i])
            return i,o,0
        def __3(i,_):
            a[i]+=ord(input(1))%256
            return i,_,0
        f = [__0,__1,
             lambda i,_:(i+1,_,0),
             lambda i,_:(i-1,_,0),
             __2,__3,
             lambda i,o:(i,o,int(not a[i])),
             lambda i,o:(i,o,---bool(a[i])),
             lambda*_:(*_,0)][chars.find(c)]
        if t:
            t+=(c=='[')-(c==']')
        else:
            i,o,t=f(i,o)
        p+=1-2*(t<0)
        try:code[p]
        except IndexError:break
    return o,int(p!=len(code))

status = brainfuck('++++++++++[>+++>+++++++>++++++++>++++++++++>+++++++++++<<<<<-]>>++.-->>+.+++++++..-------->+This is a comment.-<<<<++.-->>+++++++.------->>+.+++.----<++++++++.--------.<<<+++.')
error = status[1] or print(status[0])
terse vigil
#

NOOOO

stuck furnace
#

Gtg 👋

dense ibex
#

Cya LX

strong arch
past pawn
#

those clouds?

strong arch
#

or at least its supposed to be

past pawn
#

so why is there text... there?

strong arch
#

i think im not getting rotations in correctly

past pawn
#

lol

#

I'm having a few bugs myself, and patching it seems to make it worse, now it's this monstrosity:

    def move(self,
        w:int = 0,     a:int = 0,
        s:int = 0,     d:int = 0
    ):
        o = i, j = self.here
        x,y,_= self.xyn
        w *= not not j
        a *= not not i
        I, J = d-a, s-w
        j += J
        i += I
        tolerance:int = x+y-1
        while(not(j in range(y)and i in range(x))or self[i,j]==1)and tolerance:
            tolerance -= 1
            j += J
            i += I
            if i >= x: i:int = x-1
            elif i<0 : i = int()
            if j >= y: j:int = y-1
            elif j<0 : j = int()
            if(i,j)in(*product((0,x-1),(0,y-1)),)and self[i,j]==1:#if your in a corner and you already know that spot:
                if self!=1:i,j=o#try to go back # it's doing this too often
                else:
                    for k in range(x if I else y):
                        i,j = k if I else i,k if not I else j
                        if self[i,j]!=1:break
                    if self[i,j]==1:tolerance=0
            elif self[i,j]!=1:break
        if not tolerance and not self.check_done():
            for i,j in self:
                if self[i,j] != 1: break
        self.terminal.log('moved from '+str(self.here)+' to '+str((i,j)))if self.here!=(i,j)else self.terminal.log('unable to move that way')
        self.here = i,j
#

just for wasd where valid cells are a subset of total cells

tiny socket
#

!e

from functools import wraps

deco = lambda func: wraps(func)(lambda arg: func(arg*2))

@deco
def test(n):
  print(n)

test(4)
wise cargoBOT
#

@tiny socket :white_check_mark: Your eval job has completed with return code 0.

8
strong arch
#

plt.plot(varr, N(varr, *fit[0]), label=''.join([f"${n} = {v:.4f} \pm {e:.0E}$,{' ' if i % 3 != 2 else endl}" for (i, n, v, e) in zip(range(5), ("A", "\\mu", "\\sigma", "B", "\\epsilon"), fit[0], np.diag(fit[1])**.5)]))

past pawn
#

!e transpose list of lists ```py
transpose = lambda a:[[*t]for t in zip(*a)]
print(transpose([[1, 2, 3],[4, 5, 6],[7, 8, 9]]))

wise cargoBOT
#

@past pawn :white_check_mark: Your eval job has completed with return code 0.

[[1, 4, 7], [2, 5, 8], [3, 6, 9]]
hybrid knoll
#

Hi fellow voicechatters

past pawn
#

hi

hybrid knoll
#

Do you know what is pseudo-random asymmetrical boolean ?

#

Sorry, what have you asked?

#

idk

#

somehow

hollow hare
#

sorry abt

#

that

undone idol
#

@tiny socket wanna do it now?

stoic shale
#

I need a way to find an element in an array and then to delete anything before it

#

say ["hey", "jonas", "thanks"]

#

but imagine even more elements before "jonas"

#

and only delete the elements before and including "jonas"

#

in a dynamic way

errant nova
#

hello - I don't have perms so far to talk

#

fine - my usual coding mate is just not here today so I need some socializing 😄

#

doing my masters degree in Computer Science and working on some projects on the side

#

We are just friends without a legal framework so far for our projects - we just want to get better with coding and have some references in the future for possible Job applications.
No - Germany

rugged root
#

@wise glade I'll be on in a moment, just have to grab some coffee and a folder

wise glade
#

I'll be back in about 20-30 min, just grabbing some dinner

austere linden
rugged root
#

@crimson copperWave

crimson copper
#

hi

rugged root
#

!stream 465123434322722817

wise cargoBOT
#

@austere linden

✅ @austere linden can now stream.

vagrant spire
#

yo hemlock

#
import glob
filelist = glob.glob('Covid/*.csv')
rugged root
zenith epoch
#

so what he wants is a an list of the filepaths in a variable right ?

rugged root
#
from pathlib import Path

your_absolute_path = Path('path_to_folder_here')

for csv_file in your_absolute_path.glob('*.csv'):
   ...
timid marten
#

can i get help ?

rugged root
#

@timid marten What is wrong exactly

timid marten
#

one s

vagrant spire
#

oh i get it now, there are actual crickets around lol.

timid marten
vagrant spire
#

i'm just used to it by now. i'll keep shut for now 😄

timid marten
#

here @rugged root

rugged root
#

Looking

timid marten
#

ok

vagrant spire
#

i like f strings, but then this happens:

>>> list_ = ['1', '2', '3']
>>> f"{'\t'.join(list_)}"
  File "<stdin>", line 1
    f"{'\t'.join(list_)}"
                         ^
SyntaxError: f-string expression part cannot include a backslash
>>> "%s" % '\t'.join(list_)
'1\t2\t3'
rugged root
#

Okay

#

So

short gate
#

Hello FuryoShonen, jake, @rugged root

rugged root
#
py -m pip uninstall pygame
py -m pip install pipwin
pipwin install pygame
rugged root
#

Yeppers. Run one at a time

timid marten
#

ik

crimson copper
#

🤔 i never had any issues with installing pygame

short gate
#

F***, I lost ~/python/tkinter/battle.py again...

rugged root
timid marten
rugged root
#

Oh shit. So in pygame 2.0:

Support for Metal, Direct 3d, Vulkan, OpenGL 3.0+ in various profiles (core, compatibility, debug, robust, etc), OpenGL ES, and other modern hardware accelerated video APIs across many platforms.

rugged root
#

Previously, Pygame was only able to render with very primitive and slow methods, entirely CPU based

short gate
#

Alright.
Who will win this battle?

rugged root
#

This allows for a lot more power, GPU powered

#

This is a much much MUCH needed step

timid marten
#

still the same problem

#

would see the code?

rugged root
#

Close and re-open the terminal

short gate
rugged root
#

It might need to refresh the paths

timid marten
#

tried alr

rugged root
#

Hm

timid marten
#

can i stream?

rugged root
#

Not needed, I know what needs doing now

timid marten
#

all that for music (:

rugged root
#

Right?

#

Yeah, one sec

timid marten
#

ok

short gate
#

I won.

timid marten
#

i tried a lot of fixes on internet but still the same problem ):

timid marten
rugged root
#

I think that's the one you'll need,

#

That third one in the list

short gate
timid marten
#

what im gonna do?

rugged root
#

Looking

timid marten
#

k

rugged root
#

Okay, so I THINK....

timid marten
#

...?

molten pewter
timid marten
#

brb

molten pewter
rugged root
#

@timid marten So from that .zip, you'll take the libmpg123-0.dll and libmpg123-0.def and put them in your System32 folder.

#

After that, you should be able to just restart your terminal/editor/IDE and it'll get going

timid marten
#

not working

rugged root
#

Strip off the -0 in the file names then

timid marten
#

also tried 😦

rugged root
#

Last thing to try is to put them in the same folder as the file you're trying to run

timid marten
#

hmm

#

if didnt work i will come to voice (:

molten pewter
rugged root
short gate
errant nova
#

Isn't python a bit too battery hungry for mobile applications?

rugged root
#

The bottom one from the link I sent

errant nova
#

Compared to what the mobile operating systems expect, Python is big and slow. It uses a lot of battery charge, so if you're coding in Python you would probably very quickly run down your battery and quickly run out of memory [...]
https://www.youtube.com/watch?v=aYbNh3NS7jA

Guido van Rossum is a Dutch programmer best known as the creator of the Python programming language, for which he was the "Benevolent dictator for life" (BDFL) . Come join us for an open Q/A "Ask me Anything" to get to know how PyCon was born and Guido's amazing journey

If you are interested in joining PyCon click here: https://us.pycon.org/20...

▶ Play video
wise glade
#

can I just say
Opal and Furyo have the best voice on this server

rugged root
#

Agreed

#

Wait

#

Maro

#

His is great as well

wise glade
#

idk, he kinda frightens me 😨 😂

timid marten
#

still

rugged root
#

Does he? How so

timid marten
#

didint work

rugged root
#

Hmm.... I'm out of ideas then.

wise glade
#

you're talking about Marlo right?

rugged root
rugged root
timid marten
wise glade
rugged root
#

It's not Russian

#

He's Italian

wise glade
#

once I called him "Marko" accidentally
he said "where have I met you"
I said "what?"
he said "you used my real name. How did you knew that?" 😂

rugged root
#

Maroluccio

#

I think that's how it's spelled...

#

Oh right

#

Dude, okay

#

I'll be honest

#

I read half of what you said and even that didn't process

#

My meds have not kicked in, that's my excuse

#

And in fairness, his name is already close to his username

#

So it's an easy thing to slip into

wise glade
#

gotta do some work thing, brb

gentle flint
rugged root
#

Cheers

molten pewter
#

The Gunpowder Plot of 1605, in earlier centuries often called the Gunpowder Treason Plot or the Jesuit Treason, was a failed assassination attempt against King James I by a group of provincial English Catholics led by Robert Catesby who sought to restore the Catholic monarchy from the Church of England after decades of intolerance against Cathol...

balmy nymph
#

it took me two minutes to get the joke but it was worth it

molten pewter
#

"In the 2005 ITV programme The Gunpowder Plot: Exploding The Legend, a full-size replica of the House of Lords was built and destroyed with barrels of gunpowder, totalling 1 metric tonne of explosives."

balmy nymph
#

KABOOM

#

That reminds me of Designated Survivor

#

I kinda want to speak, but I'll blame the covid vaccine for being freaking tired

#

@amber raptor there is no poor connection, there is only poor discord API

wise glade
#

does anyone have ever worked with Microsoft Authenticator app?

short gate
#

@amber raptor I'm creating a auto-typer

rugged root
#

What's up

short gate
rugged root
#

Hi

wise glade
somber heath
#

Kuwubernetes.

dim shoal
#

hangouts is shit

balmy nymph
#

it do be shit

dim shoal
#

so is zoom

gentle flint
wise glade
#

thanks, I'll take a look

rugged root
#

You might just look into something like Bitwarden as well

plush willow
#

did anyone get github copilot?

gentle flint
#

it's magic

plush willow
#

github actually violated its own policy of copyright code

gentle flint
amber raptor
plush willow
#

kite is opensource

amber raptor
#

Unless you integrate with AzureAD

wise glade
#

google auth + java stuff

amber raptor
wise glade
#

actually, I'm trying it rn

amber raptor
#

This isn’t Google or Microsoft, it’s like HTTP

wise glade
#

oh, neat

plush willow
#

Question of the decade - Is HTML a programming language?

short gate
#

@rugged root Do you have any code snippets from your projects? I need a code snippet to test my auto-typing tool.

#

@gentle flint Hey, do you know I'm living in Vietnam, a communist country?

#

@rugged root Just give me any code...

balmy nymph
#

@rugged root you are a good programmer, don't underestimate yourself

#

nah

#

well

#

maybe

#

but still

plush willow
#

@short gate be like to @rugged root

gloomy vigil
#

you sound like you write good code

#

hemlock

rugged root
#

That doesn't even make sense!

gentle flint
#

I should call him Hamelocke

gloomy vigil
#

it makes man

short gate
#

So Mr. Grimlock, I mean Hemlock cannot give me any code.
Who else?

gentle flint
#

it's sounds delightfully Shakespeareian

somber heath
#

Ahemloche

opal mulch
#

TypeError: 'int' object is not subscriptable

short gate
gloomy vigil
#

ah a pun came in my mind
👨 + 🐖 +🔒

gentle flint
#

Hamelocke of the Danelaw

gloomy vigil
#

mr hamlock

rugged root
#

!traceback

wise cargoBOT
#

Please provide a full traceback to your exception in order for us to identify your issue.

A full traceback could look like:

Traceback (most recent call last):
    File "tiny", line 3, in
        do_something()
    File "tiny", line 2, in do_something
        a = 6 / 0
ZeroDivisionError: integer division or modulo by zero

The best way to read your traceback is bottom to top.

• Identify the exception raised (e.g. ZeroDivisionError)
• Make note of the line number, and navigate there in your program.
• Try to understand why the error occurred.

To read more about exceptions and errors, please refer to the PyDis Wiki or the official Python tutorial.

opal mulch
#

Traceback (most recent call last):
File "C:\Users\User\PycharmProjects\VIKRAM PRASAD_TP057977\main.py", line 562, in <module>
print(desire[0], desire[1])

plush willow
#

k-col-meh

plush willow
gentle flint
#

@rugged root can I call you Sir Hamelocke of Nottingham

rugged root
#

I've been called worse

gentle flint
#

how about hemmy uwu

opal mulch
#
        if desire[0] == 1:
            payment = int(input("Enter your desired amount to be paid: "))
            combined1 = date_register1()
            if not combined1:
                break```
rugged root
#
desire_str = str(desire)
balmy nymph
#

Have you ever looked at how integers are converted to strings?

plush willow
#

Hemlock flowers actually exists and are poisonous xD

gloomy vigil
balmy nymph
#

It is such a complex algorithm for something so simple

plush willow
balmy nymph
#

Sadly no hemlock pfp lore anymore

#

Yeah

gentle flint
#

@balmy nymph do you have the source

plush willow
#

NOOOOOOOOOOOOOOOOOOOO!

balmy nymph
#

source of?

gentle flint
#

the str conversion

#

as in

#

github source code

balmy nymph
#

Not for CPython

plush willow
gloomy vigil
#

bruh

balmy nymph
#

@rugged root it is french national day, you must speak french

#

yeah, 14th july

#

I can also speak french to you if that's the only blocker :P

#

It is the day we cut the head of the other guy off

#

What an happy day

gloomy vigil
balmy nymph
#

*guillotine lemon_pensive

gloomy vigil
#

damn how can I mess it up every time

balmy nymph
#

haha

#

Is

It is also quite simple, with only three lines. Each
grammatically correct?

#

not the right line

#

The more observative viewers will notice the tree ID is also part of the database. Let's see what this contains.

#

this one

plush willow
gloomy vigil
somber heath
#

observant

balmy nymph
#

aha, thanks

somber heath
#

"More observant viewers may notice..."

balmy nymph
#

@rugged root does my bedroom count as an office?

gloomy vigil
plush willow
gloomy vigil
#

then yes.

balmy nymph
#

I'm no CEO

rugged root
balmy nymph
#

I'm employed

#

My handwriting is so worse

gloomy vigil
#

my handwriting is eh

plush willow
somber heath
#

"I shave-a-da-faaace" 🎵

plush willow
#

@alpine path Vampires too hate the sun

gloomy vigil
#

maybe use curtains

stuck furnace
#

How will we survive 😓

#

Yeah, tbh, we really need to get air-conditioning in UK houses.

short gate
#

Hey guys~

stuck furnace
#

If we have a heat-wave like they've having in the western US/Canada, it would be... bad.

balmy nymph
#

Imagine living without AC

gentle flint
#

I can

rugged root
#

I would die

balmy nymph
#

Okay, today it is fairly alright

rugged root
#

Currently it's 27 C, but it's been 30ish not long ago

#

And will warm back up

balmy nymph
#

We are usually at ~35 during summer

gloomy vigil
#

using ac is kinda bad

gentle flint
stuck furnace
#

Nah, I think CFCs are outlawed.

#

Oh right.

gloomy vigil
#

Refrigerators emit more cfc

stuck furnace
#

Actually, it's best not to disturb asbestos yeah.

gentle flint
#

depends on your goals

short gate
gentle flint
#

apparently salford looked like this in the '60s too

stuck furnace
#

Sans the outside toilets.

gentle flint
#

that's my point exactly

balmy nymph
#

(I was about to write "throughout" in my presentation, then I remembered how impossible that word is to pronounce)

stuck furnace
gentle flint
#

that's also in greater manchester

stuck furnace
#

Everyone calls the tower Big Ben 😄

stuck furnace
gentle flint
#

yep

#

Salford
postcode
UK

balmy nymph
#

I know a bunch of tech companies that uses Slack

gloomy vigil
#

github is coded in which language

#

?

gentle flint
#

Alcohol and Drug Abuse Lake is a reservoir in Richland County, South Carolina, United States. Construction of the reservoir was finished in 1973. The 93.2 acres (377,000 m2) lake is on a tributary of the Crane Creek River.The lake is believed to be named after a place called Morris Village, a nearby residential treatment center for people with s...

balmy nymph
#

Even GitHub uses Slack

balmy nymph
stuck furnace
#

Ned was banned? 👀

balmy nymph
#

yeah

gentle flint
#

some people have a deep-seated hate for the postal office

balmy nymph
#

Slack looks more pro too

#

if you say your company uses Discord, eeehhh

gentle flint
gloomy vigil
#

@gentle flint what are you doing

balmy nymph
gentle flint
#

finding weird french place names

#

Anus is a populated place in Burgundy, France, within the commune of Fouronnes.Anus was anciently parished with Fouronnes, the parish sometimes being called Fouronne et Anus. In 1848, the two together had seventy households, of which nineteen were at Anus. In the 16th century, Anus had its own seigneur, who in 1598 was Guillaume Girard.

balmy nymph
#

Oh, there is worse

#

there is one saying literally "my ass"

gloomy vigil
#

ah let me contribute

gentle flint
#

phone's going, brb

balmy nymph
#

@faint ermine good, they better do something useful out of it

#

for once

#

Copilot isn't going to take anyone's job lol

#

I mean, just type ssh-private-key and tab haha

stuck furnace
#

Did you see Co-Pilot's solution to the halting problem?

balmy nymph
#

fast inverted square root best function ever

#

just pair it with github code scanning haha

#

have the two services clash

gloomy vigil
#

user names the column name'#; DROP database wait it wont work

balmy nymph
#

The only not dropped projects are the 10% projects lol

gloomy vigil
#

admin aboose ||jk||

amber raptor
rugged root
#

!vban 241989439549734912 Coming into the voice chat slamming on your keyboard and then saying it's "for a speedrun" is inappropriate and not appreciated.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied voice ban to @inland tangle permanently.

balmy nymph
#

reaaaally?

gloomy vigil
#

probably a troll

balmy nymph
#

Pretty sure they did though haha

amber raptor
#

Though GitHub MX is still pointed at Google

balmy nymph
#

wtf, AWS and Google Docs

amber raptor
#

They have their own cloud and Office suite….

gloomy vigil
#

must be hard to work in those companies

balmy nymph
#

I mean, yes, but GitHub is still a separate entity

amber raptor
#

Sure

gloomy vigil
#

i thought my mic was muted

rugged root
#

No worries

balmy nymph
#

Haskell is like the philosophy of programming

#

it is the pure form of programming, with a lot of meta questions

#

but it isn't applicable to the real word IMO

#

just like philosophy 🙃

gloomy vigil
#

!e

class Derived(str):
    def __str__(self):
        return str(self)

test = Derived("hey")
print(test)    
wise cargoBOT
#

@gloomy vigil :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 6, in <module>
003 |   File "<string>", line 3, in __str__
004 |   File "<string>", line 3, in __str__
005 |   File "<string>", line 3, in __str__
006 |   [Previous line repeated 330 more times]
007 | RecursionError: maximum recursion depth exceeded while calling a Python object
gloomy vigil
#

330 times?

balmy nymph
#

I mean

gloomy vigil
#

how

balmy nymph
#

I guess the stack only goes that deep

balmy nymph
#

I'd use Rust for a compiler

#

Read my mind 😄

#

Ung, hello lag

#

Rust is really fast compared to Python

#

ownership is a PITA sometimes

#

Lemme live dangerous 😄

#

My race conditions are fiiiiiiiiine

#

@rugged root C will let you do what the fuck you want, while Rust really doesn't. It is quite a change

#

for sure haha

#

don't dump the core pls

#

@alpine path bold of you to call it "package management"

#

You just use submodules haha

#

Freaking submodules

#

CMake is nice

#

I've used it for other projects

#

(which weren't C related)

#

@alpine path banned

gloomy vigil
#

man you are the only using text chat ;-;

#

i feel bad for you

balmy nymph
#

lol

gloomy vigil
#

17 messages continous

#

damn feel alone yet?

brave steppe
#

Microsoft has announced it's sunsetting support for Windows 10 in October 2025, including across the Home, Pro, Pro Education and Pro for Workstations editions. The last day of support is slated for Oct. 14, 2025.
@alpine path that's crazy little for an incompatible major update

somber heath
#

TCP is a very fluid acronym.

#

Tea. Sea. Pee.

balmy nymph
#

I'm used to be lonely? lemon_sentimental

gloomy vigil
#

just use linux

brave steppe
#

Python had the same period

gloomy vigil
#

python 2 was easy

print var
brave steppe
#

And like... can you compare a programming language to a full-on OS

#

They should definitely have a longer period wow

balmy nymph
#

what if the programming language is the OS?

#

Well, I'm sure there are more Python users than.. Pop_OS?

gloomy vigil
#

sue for speedtesting what?????????

balmy nymph
#

@wise glade ALT + KEY UP?

#

shift alt arrow, sorry

#

duplicate cursor is shift alt click

#

or ctrl twice + arrow key

#

unsafe { *0 }

#

oh no

#

@rugged root why don't you move deleted data to another database?

#

Who cares if the deleted data database is slow

#

wut

normal hinge
#

@rugged root made my first tech video on YouTube

#

Thought to share it with u

#

Sorry if u feel like I'm spamming

rugged root
gloomy vigil
#

you havent seen akarys if you think this is spamming

balmy nymph
#

2021
must have package
Sounds like a modern youtube video

rugged root
#

And yeah, I'll take a look at that later, looks cool

balmy nymph
#

Akarays

#

I am out

rugged root
#

Shush

#

I'm tired and in a rush

balmy nymph
#

haha

rugged root
#

Apparently one of our work machines just threw a BSoD

gloomy vigil
#

whats that

balmy nymph
#

Sadge

rugged root
#

Blue Screen of Death

balmy nymph
#

What error?

somber heath
rugged root
#

Don't know yet

wise glade
#

I just noticed, tomorrows Thursday 🥲
I totally thought it was Friday tomorrow 😭

rugged root
#

Back later

balmy nymph
#

glhf

gloomy vigil
#

your windows ran into a problem?

normal hinge
#

I just want to help people with whatever knowledge I have, yesterday I struggled a lot but luckily I got good friends here to help me out but not everyone has friends like I do so I thought to make a video on it

wise glade
#

ikr 🥲

gloomy vigil
#

cause sunday code jam ends and we have alot of work to do....

#

well i have to go guys, but i will come back. Bye!

balmy nymph
#

Alright, I'll go too, cya 👋

inland tangle
#

so i got banned because i was typing loud 🤣

dense ibex
#

I wasn't there, but I am assuming that you were trolling

#

And looking at your ban, you were

inland tangle
#

bruh

#

well can i use python in minecraft

somber heath
#

There is a Raspberry Pi-originating mod which you can use on PC, too, which gives you a Python module api thing.

#

Which seemed to be the more robust and sensible.

inland tangle
#

ohhhhhh nice

somber heath
#

Other mods have added Python-using entities...robots and soforth, that were a bit naff...that they used Python 2 didn't help.

inland tangle
#

how much do raspberry pis typically cost

somber heath
#

You don't need one for this.

inland tangle
#

my dad uses one for ad blocking on the wifi

#

ill probably find mods online

somber heath
#

Curseforge.

#

If OpenComputers used Python instead of lua, I'd be stoked.

inland tangle
#

yea i have that downloaded

#

i would learn lua but i wouldnt just do it for minecraft

#

unless i wanna make roblox games lol

rugged root
# inland tangle so i got banned because i was typing loud 🤣

No no, you were banned for typing really loud as soon as you joined, being told that you were typing loud and then replying with "Bruh, I'm speedrunning". You then continued to type loudly instead of muting yourself. If you wish to contest your voice ban, you may send a DM to the @rapid crown bot.

inland tangle
#

i see

#

ill appeal in a few months or something

sharp sand
#

i dont have the permission to speak yet

#

aight

#

yeah i can get that

#

im good

#

how r u

frigid panther
#

o/

sharp sand
#

just looking for new communities

#

yeah i code

#

mostly front end

#

but i also do python

frigid panther
#

nice

sharp sand
#

yeah vue js

#

do you have any tips if i wanna start digging into django

frigid panther
#

source code and docs

sharp sand
#

hmm yeah bcs ive tried doing flask a long time ago but i believe its way different from django

gentle flint
#

America First, Netherlands second. The original! The whole world was watching for the inauguration of the 45th president of the United States: Donald J. Trump. Because we realize it's better for us to get along, we decided to introduce our tiny country to him. In a way that will probably appeal to him the most.

Voice-over: Greg Shapiro

Sunday...

▶ Play video
rugged root
#

.bm 864930647637491732

viscid lagoonBOT
#
Noooooo!!

@gentle flint, please enable your DMs to receive the bookmark.

gentle flint
#

lol

hoary dirge
#

Hi vc ppl. does anyone know how can I find out my wsl port number? im trying to make a rule for it, so that firewall wont block the network there, but I dont know how can I find the port number 😬

rugged root
hoary dirge
#

ill try, ty

knotty blaze
#

can someone ping me here

somber heath
#

@knotty blaze

rugged root
#

@knotty blaze

knotty blaze
#

nope

rugged root
#

Weird

knotty blaze
#

the popup comes from bottom right

gentle flint
flat sentinel
#

when

gentle flint
#

2017 I think

#

or 2016

flat sentinel
#

damm

#

old

molten pewter
#

8 000 000 000 * .02 = 160 000 000

#

2% of 8 biilion is 160 million

gloomy vigil
#

what characters does \w store in regex

molten pewter
#

8 days, 15 hours, 58 minutes.

knotty blaze
#

9

#

yup

molten pewter
#

57 minutes.

knotty blaze
#

I need to wake up in the morning to watch the games

#

Like 5am

#

56 minutes.

#

And they are going to give condoms to sportsmen

somber heath
#

They do that every Olympics.

knotty blaze
#

And the condom bag has the olympics logo on it

knotty blaze
somber heath
#

Phi

gentle flint
molten pewter
gentle flint
hushed thunder
hushed thunder
#

if anyone don't know python

#

a good video to see

#

This course will give you a full introduction into all of the core concepts in python. Follow along with the videos and you'll be a python programmer in no time!
Want more from Mike? He's starting a coding RPG/Bootcamp - https://simulator.dev/

⭐️ Contents ⭐
⌨️ (0:00) Introduction
⌨️ (1:45) Installing Python & PyCharm
⌨️ (6:40) Setup & Hello Wor...

▶ Play video
gentle flint
#

that video's actually listed in this server's list of python resources

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.pydis.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.

molten pewter
knotty blaze
#

``

rugged root
#

!code

knotty blaze
#
print("O")
rugged root
#

!charinfo !del tip

wise cargoBOT
pine dune
#

!del tip ”food”:”eat healthy food”,

wise cargoBOT
#
Did you mean ...

defaultdict
decorators
mutable-default-args

knotty blaze
rugged root
#
    print(msg)
    print(msg.startswith("!del tip")
    if msg.startswith("!"):
#

!charinfo !del tip ”food”:”eat healthy food”,

wise cargoBOT
#
Character Info

\u0021 : EXCLAMATION MARK - !
\u0064 : LATIN SMALL LETTER D - d
\u0065 : LATIN SMALL LETTER E - e
\u006c : LATIN SMALL LETTER L - l
\u0020 : SPACE -
\u0020 : SPACE -
\u0074 : LATIN SMALL LETTER T - t
\u0069 : LATIN SMALL LETTER I - i
\u0070 : LATIN SMALL LETTER P - p
\u0020 : SPACE -

Full Raw Text

\u0021\u0064\u0065\u006c\u0020\u0020\u0074\u0069\u0070\u0020\u201d\u0066\u006f\u006f\u0064\u201d\u003a\u201d\u0065\u0061\u0074\u0020\u0068\u0065\u0061\u006c\u0074\u0068\u0079\u0020\u0066\u006f\u006f\u0064\u201d\u002c

rugged root
#

!del tip ”food”:”eat healthy food”

tiny socket
#

.t

viscid lagoonBOT
#
I can't believe you've done this

Your input was invalid: command is a required argument that is missing.

Usage:.timed <command>

tiny socket
#

.t pixelate

viscid lagoonBOT
#

The command you are trying to time doesn't exist. Use .help for a list of commands.

tiny socket
#

.t 8bitify

viscid lagoonBOT
#
Your 8-bit avatar

Here is your avatar. I think it looks all cool and 'retro'.

#

Command execution for avatar_modify 8bitify finished in 1.4039 seconds.

knotty blaze
#

.t 8bitify

viscid lagoonBOT
#
Your 8-bit avatar

Here is your avatar. I think it looks all cool and 'retro'.

#

Command execution for avatar_modify 8bitify finished in 0.9466 seconds.

knotty blaze
#

nice

silver hollow
#

Hello

#

I don,t can say words

rugged root
#

No worries.

#

Typically if we're in voice chat, we'll be watching the paired text channel

#

So even if you can't talk, we still have a conversation

#

A lot of people just prefer to listen and type

silver hollow
#

Okey

#

Got it

#

I'm new here

rugged root
#

We're glad to have you

#

Are you new to programming in general?

silver hollow
#

I am from Russia

rugged root
#

!resources

wise cargoBOT
#
Resources

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

rugged root
#

Automate the Boring Stuff and A Byte of Python are two good ones

silver hollow
#

And My English is bad

#

I started learning programming and thought that python is a good option for me.

silver hollow
#

I would also like to say that I know very little English and do not understand very well what you are talking about, but I think that about python.

#

And I would also like to apologize for my English.

stuck furnace
#

Yep

#

aint instead of is not

molten pewter
rugged root
#

!e

word_list = list("Python is friggin' awesome")
print(word_list.index("is"))
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 | ValueError: 'is' is not in list
knotty blaze
#
usernameInput = ""
def UsernamePassword():
    username = ["Ali12", "Ahmad24", "Reza60", "Zahra_36"]
    password = [3684, 9587, 3612, 8459]
    while True:
        usernameInput = input("Please enter your username: ")
        if username.index(usernameInput):
            break
        else:
            print("Wrong Username. Please try again.\n-----------------")
    while True:
        passwordInput = int(input("Please enter your password: "))
        if passwordInput == password(username.index(usernameInput)):
            break
        else:
            print("Wrong password. Please try again.\n-----------------")

stuck furnace
#

Sounds like interference 🤔

rugged root
#

password(username.index(usernameInput))

#

password[username.index(usernameInput)]

#

!stream 465117187758227456

wise cargoBOT
#

@knotty blaze

✅ @knotty blaze can now stream.

tiny socket
#
# Option 1
"".join(item for item in iterable)

# Option 2
"".join([item for item in iterable])
```which is faster
rugged root
#

if username.index(usernameInput.strip()):

whole bear
#

are we getting trolled?

gloomy vigil
#

damn three guys streaming must be a hard time i wish i was here

rugged root
#
logins = {
  'brad': 123,
  'terry': 456
}

while True:
  username = input("Please enter your username: ")
  if password := logins.get(username):
    break
  print("Invalid username")

password_input = input("Please enter your password: ")
if int(password_input) == password:
  print("Welcome")
else:
  print("Get out")
tiny socket
#

if a := b

check if b is a truthy value then set a to b

#
nonlocal
knotty blaze
#

cool

vivid palm
#

does everyone sound echoy or is it my headphones

knotty blaze
#

maybe my sound is

pine dune
#
def delTip(msg):
    msg = msg.replace("!del tip ", "")    
    msg = normalize(msg)
    print(msg)
    lines, isLine = [], False
    Tips = open(("Python_Bot/Tips.txt"), "r")
    for line in Tips:        
        print(msg)
        print(line)
        print(1)
        if line != msg:
            lines.append(line)
        else:
            isLine = True  
            print(2)
#

@Voice Verified
This role allows people to speak in our voice channels.
To get this role send the command !voice-verify in #voice-verification. Please note that there are requirements to getting this role. They are listed in the channel where you run the command.

honest cairn
#

just need 49 more messages and i will meet that requirement xD

#

is there a channel I can spam?

#

yikes

#

yeah its okay, i just like watching people code during my lunch xD

vivid palm
#

it's not too high in our experience

#

at all

honest cairn
#

i am a weirdo o.O

verbal ibex
#

hi

vivid palm
#

bot messages you automatically with instructions

#

we also have this command that you can use to guide people further !voice

verbal ibex
#

Guys, who knows matplotlib well?

#

Could you give me a hand?

#

I know that's not a help channel, but nobody helps there

#

how can make x major ticks equal y major ticks?

pine dune
#
import importlib
import tipSwitch
from tipSwitch import TipSwitch as ts
a,b = 'def TipSwitch(msg):\n\tswitch={\n', '\t\t'
c,d= '\t}\n\treturn switch.get(msg, "This command isn','t avaible")'

def tip(msg):
    return ts(msg)

def normalize(msg):
    msg = msg.replace("  "," ")
    msg = msg.replace("“","'")
    msg = msg.replace("„","'")
    msg = msg.replace("”","'")
    msg = msg.replace("’","'")
    msg = msg.replace("‘","'")
    return(msg)

def delTip(msg):
    msg = msg.replace("!del tip ", "")    
    msg = normalize(msg)
    print(msg)
    lines, isLine = [], False
    Tips = open(("Python_Bot/Tips.txt"), "r")
    for line in Tips:        
        print(msg)
        print(line)
        print(1)
        if line != msg:
            lines.append(line)
        else:
            isLine = True  
            print(2)
    if isLine:
        Tips = open(("Python_Bot/Tips.txt"), "w")
        for line in lines:
            print(line)
            Tips.write(line)
            Tips.close()
            Tips = open(("Python_Bot/Tips.txt"), "r")
            Switch = open(("Python_Bot/tipSwitch.py"), "w")
            Switch.write(a)
            for line in Tips:
                Switch.write(b+line)
            Switch.write(c+"'"+d)
            Switch.close()
            Tips.close()
            importlib.reload(tipSwitch)
            from tipSwitch import TipSwitch as ts
        return "Command deleted"
    else:
        return "Command not found"
#

'network':'network with others',
'network':'network with others',

1
'network':'network with others',
'network':'network with others',

1
'network':'network with others',
'network':'network with others',

1
'network':'network with others',
'network':'network with others',

1
'network':'network with others',
'network':'network with others',

1
'network':'network with others',
'network':'network with others',

1

errant nova
# verbal ibex Guys, who knows matplotlib well?

You can try to use plt.gca().set_aspect('equal'), e.g.:

import matplotlib.pyplot as plt
import numpy as np

data = np.random.rand(5)
plt.plot(np.arange(5),data)
plt.gca().set_aspect('equal')
rugged root
#

I can't even think

#

I've never lost my thoughts this badly

#

It is actually really spooky

brave steppe
errant nova
#

Maybe redis would be an option then?

rugged root
#
GitHub

🥑 ArangoDB is a native multi-model database with flexible data models for documents, graphs, and key-values. Build high performance applications using a convenient SQL-like query language or JavaSc...

#

That might be a good one

#

Also, heading out to a doc appointment

faint ermine
#

cya

pine dune
#

'network':'network with others',
'network':'network with others',

#

Other
'network':'network with others',
'network':'network with others',
1
2

molten pewter
#

GTG

pine dune
#

print(line + "a")
'network':'network with others',
a

#

'network':'network with others',
'network':'network with others',
'network':'network with others',
'network':'network with others',

gloomy vigil
#

hello everyone

brave steppe
#

repr(line)

errant nova
#

Did someone ever try to monkeypatch doctests written within the .rst files for sphinx?
I'm wondering if there is a solution for this problem already available or if I would be faster doing it myself.

crimson copper
#

.topic

viscid lagoonBOT
#
**What is your earliest memory of Easter?**

Suggest more topics here!

gloomy vigil
#

i dont celebrate ;-;

#

easter

vivid palm
#

joint silence

#

it's great

crimson copper
#

when i was like 7, iirc

vivid palm
#

i got a new computer for work today praise

crimson copper
#

upgrade?

vivid palm
#

yes.. .old machine wasn't teeeeeeeeeerrible, but still a very nice upgrade

crimson copper
#

git diff?

#

in python, it's still \n, it normalizes them for you

gloomy vigil
#

well guys i have to sleep

#

so bye

#

everyone

crimson copper
#

cya

vivid palm
#

fave/must-have extensions for vs code? logo_vscode

crimson copper
#

pycharm

errant nova
#

Ok - cool. I managed to load a fixture within my sphinx documentation. The only reason it didn't work before was that I used

pytest --doctest-glob="*.rst"

instead of

pytest --doctest-modules doc/pages/*/*.rst
strong arch
weary zephyr
#

won't

cerulean moth
#

yeeeet

quick bison
#

whats it ??

tiny socket
warm prism
tiny socket
warm prism
#

Use spoilers

past pawn
#

lmfao

zealous wave
#

All I did was google windows light theme

#

I swear I don't use it

warm prism
#

don't lie

#

you unironically use it

tiny socket
zealous wave
#

Altho...

quick bison
#

any extension ??

warm prism
quick bison
past pawn
#

Light theme windows... minesweeper

quick bison
past pawn
#

code jam?

#

I'd have to clean it up to submit it for anything XD

#

it's completely debugged but the source would traumatise most developers

quick bison
#

lol

past pawn
#

ew i gotta use rich or curses frameworks for code jam

#

this minesweeper is the opposite of code jam; it doesn't use rich or curses

#

it's already cursed enough with all these escape sequences ;)

tiny socket
#

!pypi htranslate

wise cargoBOT
tiny socket
#

!pypi corded

wise cargoBOT
#

A lightweight, extensible client library for Discord bots

zealous wave
#

!pypi dpy-docs

tiny socket
wise cargoBOT
past pawn
#

!pypi cursedutils

wise cargoBOT
past pawn
#

cool that works

tiny socket
#

!pypi forbiddenfruit

wise cargoBOT
gloomy vigil
#

!pypi beautifulsoup

wise cargoBOT
tiny socket
whole bear
zealous wave
#

after a few hours, ive finally finished it. 10k char hello world program!
onliner: https://gist.github.com/ChiliMX/cc81819f8ffc13387d8d2dc9cebdaef0
pycharm reformat: https://gist.github.com/ChiliMX/821bf6db53a5b6104bfcb516e2c5bd83

Gist

a nice, one liner hello world project. GitHub Gist: instantly share code, notes, and snippets.

Gist

Pycharm code reformat made my amazing oneliner(check out my other gist) into this - no longer a one liner.py

#

@whole bear

#

!e ```py
@import
@lambda _: _.name
class hello: pass

wise cargoBOT
#

@zealous wave :white_check_mark: Your eval job has completed with return code 0.

Hello world!
zealous wave
#

!e ```py
package='hello';from.import*

wise cargoBOT
#

@zealous wave :white_check_mark: Your eval job has completed with return code 0.

Hello world!
graceful grail
whole bear
#

i want to talkkkkkkkkkkkkkk

graceful grail
#

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

my fgoddddddddddddddd

#

i came here to ask for help and i cant speak

#

fuk

#

i go ask morgan freeman

#

what do you need friend?

#

me is stuck and my head is going boom

#

flow chart

#

its python

#

I have to write a program that works out whether if a given year is a leap year. A normal year has 365 days, leap years have 366, with an extra day in February.

#

why does this return```py
class Node:
def init(self, value):
self.value = value
self.next = None
self.last = None

node1 = Node(1)
node2 = Node(2)
node3 = Node(3)
node4 = Node(4)
node5 = Node(5)
node6 = Node(6)

node1.next = node2
node2.next = node3
node3.next = node4
node4.next = node5
node5.next = node6

node6.last = node5
node5.last = node4
node4.last = node3
node3.last = node2
node2.last = node1

def reverse_linked(head):
current_node = head
length = 0
first_pointer = head
while True:
if current_node.next != None:
length+=1
current_node = current_node.next
if current_node.next == None:
length+=1
last_pointer = current_node
break

if length % 2 == 1:
    while first_pointer != last_pointer:
        temp = first_pointer.value
        first_pointer.vlaue = last_pointer.value
        last_pointer.value = temp
        first_pointer = first_pointer.next
        last_pointer = last_pointer.last

elif length % 2 == 0:
    for i in range(1, int(length/2)):
        temp = first_pointer.value
        first_pointer.vlaue = last_pointer.value
        last_pointer.value = temp
        first_pointer = first_pointer.next
        last_pointer = last_pointer.last
return return_linked(head)
# return a

def return_linked(head):
nodes = []
current_node = head
while current_node.next != None:
nodes.append(current_node.value)
current_node = current_node.next
return nodes

print(reverse_linked(node1))```

#
[1, 2, 3, 4, 2]```
#

this

#

wait i jus copy paste from stackoverflow

whole bear
#

e.g. The year 2000:

2000 ÷ 4 = 500 (Leap)

2000 ÷ 100 = 20 (Not Leap)

2000 ÷ 400 = 5 (Leap!)

So the year 2000 is a leap year.

But the year 2100 is not a leap year because:

2100 ÷ 4 = 525 (Leap)

2100 ÷ 100 = 21 (Not Leap)

2100 ÷ 400 = 5.25 (Not Leap)

whole bear
#

you could just chain if and on a condition set a var to either leap or not leap

#

and print the var at the end

#

i dont think i can give you the direct solution i can only give hints

#
  def leapYear(year: Int): Boolean = ((year % 400 == 0) || (!(year % 100 == 0) && year % 4 == 0))
}``` here's the answer in scala. I will not elaborate 🙂
#

i am confused by this paragraph on

every year that is evenly divisible by 4
except every year that is evenly divisible by 100
unless the year is also evenly divisible by 400

whole bear
# whole bear

i recommend seeing this flow chart its really good explaination

#

oo soory

#

i thought this was general was wondering why chat is soo dead

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @whole bear until 2021-07-15 06:56 (9 minutes and 59 seconds) (reason: burst rule: sent 8 messages in 10s).

onyx kindle
#
def ram():
    
    memoria_ram1 = {"cantidad de ram": "2GB", 
                "precio" : 15000}           

    memoria_ram2 = {"cantidad de ram": "4GB", 
                "precio" : 30000}

    memoria_ram3 = {"cantidad de ram": "8GB", 
                "precio" : 50000}
    
    return [memoria_ram1, memoria_ram2, memoria_ram3]
ram_dic = ram()
print(ram_dic)
whole bear
#

ram_dic[0]

#

ram_dic[0]["precio"]

#

!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.pydis.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.

onyx kindle
whole bear
#

good bye guys !cs classes going on havee a nice day

graceful grail
#

||spoiler||

whole bear
#

||hi||

#

||python print("Hello")||

graceful grail
#

!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.pydis.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.

graceful grail
errant nova
#

Hello - what are you working on there?

whole bear
onyx kindle
#

how can I change this output? ```py
([{'cantidad de ram': '2GB', 'precio': 15000}, {'cantidad de ram': '4GB', 'precio': 30000}, {'cantidad de ram': '8GB', 'precio': 50000}], [{'modelo': 'Intel i5', 'precio': 320000}, {'modelo': 'Intel i7', 'precio': 400000}], [{'capacidad': '512GB', 'precio': 50000}, {'capacidad': '1TB', 'precio': 100000}, {'capacidad': '2TB', 'precio': 150000}])

#

to something more readable

errant nova
#
(
    [
        {"cantidad de ram": "2GB", "precio": 15000},
        {"cantidad de ram": "4GB", "precio": 30000},
        {"cantidad de ram": "8GB", "precio": 50000},
    ],
    [
        {"modelo": "Intel i5", "precio": 320000},
        {"modelo": "Intel i7", "precio": 400000},
    ],
    [
        {"capacidad": "512GB", "precio": 50000},
        {"capacidad": "1TB", "precio": 100000},
        {"capacidad": "2TB", "precio": 150000},
    ],
)
whole bear
#

you can use for loops to write the different parts more legibly

errant nova
#

with black https://github.com/psf/black if you are talking about formatting. Alternatively you could dump to yaml, which is a more human readable format

GitHub

The uncompromising Python code formatter. Contribute to psf/black development by creating an account on GitHub.

whole bear
errant nova
#

!e

import yaml

output = (
    [
        {"cantidad de ram": "2GB", "precio": 15000},
        {"cantidad de ram": "4GB", "precio": 30000},
        {"cantidad de ram": "8GB", "precio": 50000},
    ],
    [
        {"modelo": "Intel i5", "precio": 320000},
        {"modelo": "Intel i7", "precio": 400000},
    ],
    [
        {"capacidad": "512GB", "precio": 50000},
        {"capacidad": "1TB", "precio": 100000},
        {"capacidad": "2TB", "precio": 150000},
    ],
)
print(yaml.dump(output))
wise cargoBOT
#

@errant nova :white_check_mark: Your eval job has completed with return code 0.

001 | !!python/tuple
002 | - - cantidad de ram: 2GB
003 |     precio: 15000
004 |   - cantidad de ram: 4GB
005 |     precio: 30000
006 |   - cantidad de ram: 8GB
007 |     precio: 50000
008 | - - modelo: Intel i5
009 |     precio: 320000
010 |   - modelo: Intel i7
011 |     precio: 400000
... (truncated - too many lines)

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

onyx kindle
#

for key in a_dict:
... print(key, '->', a_dict[key])

#

yey

errant nova
#

@onyx kindle would that answer your question? - Sry

whole bear
#

i guess that was higgs question

#

or @onyx kindle i guess

onyx kindle
#

I'm looking for options

#

I don't know how to do it

#

exactly

errant nova
#

You could also just use json.dumps instead of yaml.dump with the flags sort_keys=True, indent=4. => No external dependencies

whole bear
#

dictname["key"] = whatever

sweet lantern
#

you can't show a cursor without a image of a cursor..

graceful grail
novel sleet
#
#

DataStructure: Hash Table 0(1) run time

short gate
#

Hello there

gentle flint
#

microsoft scammer on the phone

#

shall i put him on speaker?

whole bear
#

I would love that but they're pretty heated on the problem haha

gentle flint
#

k lol

novel sleet
errant nova
#

In mathematics, a combination is a selection of items from a collection, such that the order of selection does not matter (unlike permutations). For example, given three fruits, say an apple, an orange and a pear, there are three combinations of two that can be drawn from this set: an apple and a pear; an apple and an orange; or a pear and an or...

whole bear
#

I've been feeling really lonely lately just wanted to say thanks to you guys for coming to hang out it's a lot of fun getting to talk about stuff and think about problems

novel sleet
#

thanks for being available even though you're usually busy and going to be grinding this week

whole bear
#

the pleasure is all mine. I'll have more time to be in the community like this and think about problems and further my education a lot I feel the next couple of months so that even if I don't get to end up in a job coding for a living I can feel much more confident about myself and what I know

whole bear
whole bear
#

I just also... have a lot of projects diverting my time haha. Another I wanted to mention but we sorta got onto this problem turtle is I plan to make a card game simulator. My friend can't run tabletop simulator because a 3D physics engine is overkill for card games so I wanted to fulfill a niche and make something I can use

gentle flint
turbid pivot
#

nicee lol

leaden yoke
#

fr

gentle flint
errant nova
urban walrus
#

What a sexy keyboard

leaden yoke
#

nice setup

urban walrus
#

Nice cat too

whole bear
gloomy vigil
#

nice cat

gentle flint
#

ooh, a sextant

strong arch
urban walrus
#

Gotta sleep with a sheet!

gentle flint
#
wikiHow

A sextant is an old navigational tool that measures elevation using angular distances. You can use a sextant to determine the altitude in the sky of the sun, moon, or other celestial bodies relative to the horizon. You can then use that...

whole bear
#

!pypi speedtest

wise cargoBOT
leaden yoke
#

:I

whole bear
#

@leaden yoke your name is silly

leaden yoke
#

hey!

#

That's not nice 😦

#

my shi's looking clean asf

whole bear
#

it's a wholesome silly

leaden yoke
#

you don

#

yes yes

#

indeed

#

Higgsonmadooda

#

indeed

whole bear
#

y e s

gloomy vigil
#

from the accent its indian

errant nova
#

oh my god - this is great

whole bear
#

I'm sorry but just... her english

gloomy vigil
#

share you screen live

#

epik trolling

#

it would open run

whole bear
#

oh god... windows + r

gloomy vigil
#

super + r

#

evinronment variables?

gentle flint
#

i have no clue

gloomy vigil
#

yea i am pro

gentle flint
#

hurry

whole bear
#

@gloomy vigil a little too pro

gloomy vigil
#

bruh

gentle flint
#

phew

#

i guessed right

gloomy vigil
#

i used it to change windows settings

whole bear
#

beautiful prose with the pros

#

his english is a lot better

gloomy vigil
#

hi peter

#

i am dad

#

-verbose be like

whole bear
#

lmao I love you verbose