#voice-chat-text-0

1 messages ยท Page 505 of 1

burnt marsh
#

I love to work at night

scarlet halo
#

Or

#

I pushed it forward a few hours

plain dagger
scarlet halo
#

Also best time to just zone out, like I could code for what feels like 5 minutes and it's actually 30 minutes

burnt marsh
burnt marsh
haughty pier
burnt marsh
burnt marsh
scarlet halo
wise loom
#

yes correct

vocal basin
#

@paper wolf pointers in C++ are less reliable/direct than in C

paper wolf
vocal basin
#

ugh

#

Python is embeddable too

#

also "scripting language" is kind of a generally useless notion

#

HTML is a programming language, JSON is a programming language

plain dagger
#

How To Meet Ladies?

vocal basin
#

they are declarative, but so is Haskell, to an extent

#

don't entangle simulation logic with the UI logic

hexed trout
#

here to lurk language debate ignore me ๐Ÿ‘€

#

ahh alright

vocal basin
#

biggest non-embedded software I know that involves Lua is Torch

#

its pre-Python stage

hexed trout
#

I just like to hear people compare the validity of things I don't even have a full understanding of, fun learning material

vocal basin
#

@somber heath going to the earlier discussion about accents

hexed trout
#

worse hahahaha

#

way worse

vocal basin
#

(I'm used to t->ch d->j consonant transition so easier for me to guess)

#

๐Ÿ”ˆ๐Ÿ’ฅ

hexed trout
#

that is way better even if krisp can be super annoying when it cuts you off

vocal basin
#

Temu is as if your ordered Aliexpress from Aliexpress

#

I would never use Temu because there is Aliexpress and it's considerably less problematic

paper wolf
#

true

vocal basin
#

starts with same letters

paper wolf
#

empl*yment

hexed trout
#

starting college in a month for network engineering

#

no working currently

paper wolf
#

bro said the w word

vocal basin
#

e word
j word
w word

paper wolf
#

ill cook food

hexed trout
#

lol

wise loom
#

5minutes left to join

hexed trout
#

fun way to give people a chance to gain something even if they suck

wise loom
vocal basin
#

I have more commits than leetcode submissions

#

(three separate servers)

wise loom
#

servers?

vocal basin
#

Forgejo/Gitea

#

also, side note: not these are not commits

#

these are pushes

#

i.e. total commit count is even higher

#

three separate deployments of Forgejo/Gitea

#

meanwhile GitHub isn't used as much by me

#

there was some commit in rust-lang org

#

most of the code I have on GitHub is for things I publish on crates.io

#

which then ends up being used at work or other places

#

self-hostable

#

GitHub is closed-source

#

you can self-host it but you need to negotiate a license agreement with them

#

there is no public offer for how much that costs

#

no, you host it

#

you pay them to host their software for your use

#

Forgejo is a purely free thing

#

Gitea as a whole is no longer really free

#

it's a for-profit corporation now

#

Forgejo is maintained by Codeberg, which is a non-profit organisation

#

Forgejo branched off from Gitea for that exact reason

#

Gitea the organisation is trying to monetise Gitea the brand after governance change

vocal basin
somber heath
#

!code

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
#

@brazen sluice ๐Ÿ‘‹

brazen sluice
#

guys i cant talk in voice channels how to fix

somber heath
#

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

vocal basin
#

"" is an initial value, that you add things to

#

you can't += to something that doesn't exist yet

#

there is another form

table = "".join(f"{n} X {i} = {n*i}\n" for i in range(1, 11))
#

here "" means something different

#

!e

s = "a"
s += "b"
s += "c"
print(s)
wise cargoBOT
vocal basin
#

!e

s = "a" + "b" + "c"
print(s)
wise cargoBOT
vocal basin
#

!e

s = "".join(["a", "b", "c"])
print(s)
wise cargoBOT
vocal basin
#

these three yield same results

#

however they work differently

#
s += "a"
s = s + "a"
#

there are some cases in Python where those two differ

#

if you do = instead of +=, it will ||only output the last line||

#

make sure you understand the entirety of the tutorial, yes

#

there is no "learning fast"

#

I started 8 years ago

#

numpy, pandas are installable packages

#

not part of the standard library

haughty pier
#

pydoc -b should give you lots of docs in a browser accessible while not connected to the internet

somber heath
#

@spiral stirrup ๐Ÿ‘‹

#

@quartz nexus ๐Ÿ‘‹

quartz nexus
#

๐Ÿ‘‹

#

๐Ÿ™‚

paper wolf
#

hi there folks

#

why everytime people talk here it will end up on politics....

#

lmao

#

fair point

#

woah cool

#

aaaaa guys idk what to do ๐Ÿ˜ญ

#

opalmist is smart

paper wolf
#

!doc dict

somber heath
#

@worn comet @zenith atlas ๐Ÿ‘‹

zenith atlas
#

hey

calm heron
#
with open("show_ip_int_brief.txt", "r") as f:
    data = f.readlines()

ip_addresses = {}

for line in data:
    if "10." in line:
        line_split = line.split()
        interface = line_split[0]
        ip_address = line_split[1]
        ip_addresses.update({interface: ip_address})

for k, v in ip_addresses.items():
    print(f"{k} --> {v}")
#
Interface              IP-Address      OK? Method Status                Protocol
GigabitEthernet0/0/0   10.220.88.22    YES NVRAM  up                    up      
GigabitEthernet0/0/1   unassigned      YES unset  administratively down down    
GigabitEthernet0/1/0   unassigned      YES unset  down                  down    
GigabitEthernet0/1/1   unassigned      YES unset  down                  down    
GigabitEthernet0/1/2   unassigned      YES unset  down                  down    
GigabitEthernet0/1/3   unassigned      YES unset  down                  down    
Loopback98             10.254.98.1     YES manual up                    up      
Loopback99             10.254.99.1     YES manual up                    up      
Vlan1                  unassigned      YES manual up 
#

!e

base_addr = "10.220.88"
ip_generator = (
    f"{base_addr}.{x}"
    for x in range(1,6)
)

for ip_addr in ip_generator:
    print(ip_addr)
wise cargoBOT
somber heath
#

@void ore @umbral iron ๐Ÿ‘‹

calm heron
#

"^(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$"

#

"^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$"

umbral iron
#

im trying use mic more than 2 months

somber heath
#

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

umbral iron
#

and i cant rsrsrs

#

i did it

#

but have some problem that i need make more than 25 messages...

#

its a lot

#

!voice

#

but im here more than 3-4 months

#

said i cant have permission

#

let me see

somber heath
#

@storm pine ๐Ÿ‘‹

umbral iron
#

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

calm heron
#

This one is much shorter

ipv4_pattern = r"^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$"
somber heath
#

@hybrid vigil ๐Ÿ‘‹

hybrid vigil
somber heath
#

As I said. The instructions are in the voice verification channel.

#

See the first instruction.

#

@summer osprey ๐Ÿ‘‹

summer osprey
#

Hello ๐Ÿ‘‹๐Ÿป

calm heron
#
import re

ipv4_pattern = r"^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$"

with open("show_ip_int_brief.txt", "r") as f:
    data = f.readlines()

ip_addresses = {}

for line in data:
    if re.match(ipv4_pattern, line.split()[1]):
        interface = line.split()[0]
        ip_address = line.split()[1]
        ip_addresses.update({interface: ip_address})

for k, v in ip_addresses.items():
    print(f"{k} --> {v}")

#

ip_addresses = ip_addresses[interface: ip_address]

somber heath
#

!e py my_dict = {} my_dict['apples'] = 13 print(my_dict) print(my_dict['apples'])

wise cargoBOT
calm heron
#

ip_addresses[interface] = ip_address

somber heath
#

!e py foo = {1: 2, 3: 4} bar = {3: 5, 6: 7} foo.update(bar) print(foo)

wise cargoBOT
somber heath
#

!e py foo = {1: 2, 3: 4} bar = {3: 5, 6: 7} baz = foo | bar print(foo) print(bar) print(baz)

wise cargoBOT
tacit crane
#

async def subscribe_push(request: Request) -> JSONResponse | HTMLResponse:

somber heath
#

!e ```py
class MyClass:
def or(self, value):
return 'Hello, world.'

foo = MyClass()
print(foo | 123)```

wise cargoBOT
somber heath
#
print(foo.__or__(123))```
#
print(MyClass.__or__(foo, 123))```
umbral iron
#

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

somber heath
#

!e ```py
class MyClass:
def getitem(self, key):
return 'Hello, world.'

def __setitem__(self, key, value):
    print(f'Setting {key} with {value}.')

foo = MyClass()
print(foo['bar'])
foo['baz'] = 'boz'```

wise cargoBOT
umbral iron
#

"voice

#

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

umbral iron
#

i need interact

#

in this channel

calm heron
#

!e

x = 5 # Binary: 0101
y = 7 # Binary: 0111

result = x | y
print(result)
umbral iron
#

to make it free to talk

wise cargoBOT
calm heron
#

!e

x = 5 # Binary: 0101
y = 8 # Binary: 1000

result = x | y
print(result)
wise cargoBOT
plain dagger
#

~

#

the best one

somber heath
#

& << >> ^ | ~

calm heron
#

!e

x = 1
print(id(x))
wise cargoBOT
plain dagger
#

is queensland in australia?

#

๐Ÿ˜ฎ

wise loom
#

โ›ฐ๏ธ

#

โ„๏ธ

plain dagger
#

yeah im looking queensland now, wow

#

weiiird, why is it so cold now there?

#

oh i thought it was like brasil, always hot even in winter

#

XDDDDD

#

know the feel

#

ohh thats sad

#

where im from we also have fires like every year

#

a lot of people have died too

#

worst of it is that here all of the big ones have been intentional

#

pyromaniacs

#

last one which was huge it was a coordinated between a firefighter and park rangers, 5800 hectares burnt

#

wow

cinder mirage
#

hi

somber heath
#

@cinder mirage ๐Ÿ‘‹

tacit crane
burnt marsh
# cinder mirage hi

Hello, ะทะตะปะตะฝะฐั ั‡ะตั‡ะตะฒะธั†ะฐ

plain dagger
#

i want to visit australia

#

but i fear the bugs XD

burnt marsh
plain dagger
#

in my country we only have the violinist spider, litterally the only poisonous/venomous animal here

#

we dont even have snakes

#

so prob i wouldnt survive there XD

#

yeah us with the bears

#

bears are the worst imho

cinder mirage
#

I can't type 50 messages to remove the mute

plain dagger
#

you cant outrun it

#

yeah grizzlies

stark oxide
plain dagger
#

here we have mountain lion

burnt marsh
plain dagger
#

but the mountain lion we have is specifically shy and just runs from you and is a small variant

#

ohhh :c

plain dagger
#

im from chile btw

#

most pacific country ever in what respects on nature

burnt marsh
wise loom
#

I'm implementing a "Range Tree". A data structure that represents an interval that has been subject to successive splitting by removal of 1 element.
In essence you start with a range(a,b) and then you pick some x with a<=x<b and "insert x" into the Range Tree and this leads to further splitting of the range.

plain dagger
#

XD

#

what is the best place that you would recomend visit there?

burnt marsh
#

?

plain dagger
#

since now im fully remote i want to travel while working

wise loom
#

Correct Opal

burnt marsh
#

In Canada - come to Ottawa

burnt marsh
plain dagger
#

time to leave folks

#

see ya

wise loom
#

yes, we always start with range(a,b)

#

ascending, yes

#

always step=1

burnt marsh
wise loom
#

it is the actual range in Python

burnt marsh
#

In Quebec you definietly need to know French

somber heath
#

@sacred nest ๐Ÿ‘‹

burnt marsh
#

Im going to have a nap

#

See you pymates

versed lichen
#

@somber heath hi

#

so still you guys dicussion nothing ?

#

@somber heath

somber heath
#

@proud merlin ๐Ÿ‘‹

proud merlin
versed lichen
paper wolf
#

I'm having hard time understanding......

#

Guys help ๐Ÿ˜ญ I don't understand what Babu say ๐Ÿ˜ญ

somber heath
#

@wintry forum ๐Ÿ‘‹

paper wolf
#

How you understanding it ๐Ÿ˜ญ

#

Babu's accent realy degrades the English words

#

Opal most talk super slow tbh...

#

Well English isn't not like other languages where there's no word difference when you slightly change the sound

#

A loot of language is tonal language while English is highly not

wise loom
versed lichen
paper wolf
#

Chinese heavily tonal

#

It change the entire word

wise loom
# versed lichen sorry didn't get you ?

the topics discussed were not to your liking, so I'm asking what can we do to cater to your high standards?
you know we want to make everyone happy in order to achieve excellent Customer Service in this Discord server.

versed lichen
somber heath
#

@left dirge ๐Ÿ‘‹

left dirge
#

hi

#

I don't have permission speak in this channel

somber heath
#

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

left dirge
#

ok thanks

somber heath
#

@sick otter ๐Ÿ‘‹

#

@prisma scarab ๐Ÿ‘‹

dry jasper
next beacon
#

hi

#

what are you talking about? @somber heath

#

ok

waxen barn
somber heath
#

Lock out, tag out or lockoutโ€“tagout (LOTO) is a safety procedure used to ensure that dangerous equipment is properly shut off and not able to be started up again prior to the completion of maintenance or repair work. It requires that hazardous energy sources be "isolated and rendered inoperative" before work is started on the equipment in ques...

paper wolf
#

Real

gritty wren
#

a

somber heath
#

@robust veldt ๐Ÿ‘‹

somber heath
#

@brisk heath ๐Ÿ‘‹

brisk heath
#

Bruh I can't talk

#

@somber heath

somber heath
#

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

brisk heath
#

@somber heath I'll talk to you after 3 days

somber heath
#

@dry raptor ๐Ÿ‘‹

wise loom
#

@manic basin Sisqo is a singer, he's an artist from the 2000s

tacit crane
wise loom
#

@manic basin instead of wondering, planning, just do it. tryhackme and hackthebox are excellent.
if you can go through at least all the free content.. you're already golden. then get the sub and do even more.

manic basin
dry raptor
somber heath
dry raptor
#

I didn't asked

iron geyser
#

@tacit crane ๐Ÿ‘€

vocal basin
#

@manic basin look into Google's bug bounty program

#

afaik they don't penalise for delayed discovery

#

there were precedents of payouts for showing a proof of concept combining multiple exploits where several months pass since discovery of the first bug

willow gate
#

@sour steppe hey, how are you?

vocal basin
#

internet is very reliable yes

vocal basin
vocal basin
sour steppe
willow gate
#

Did you have same for Ai?

compact pier
#

Holle

vocal basin
#

sleep affects memory

#

you will not "lose brain cells", but you will just not learn as fast

primal shadow
#

Sleep cleans the brain

#

Critical processes happen during slepe

vocal basin
#

@sour steppe meanwhile Spain: double summer time

#

1 hour shift permanent + 1 extra hour during summer

#

so Spain has the same timezone as Russia during summer

#

(very Western Russia)

cinder mirage
#

mut

vocal basin
#

@sour steppe meanwhile Uber:

#

Bryan Cantrill

#

@sour steppe if you're looking at the code at all, it's already not "true vibe coding"

#

vibe coding is for discardable code

#

you can't really add security on top of something correctly

#

really needs to be designed upfront

long dragon
vocal basin
next beacon
#

can some one pla look over my game

vocal basin
next beacon
#

maybe @sour steppe

vocal basin
#

then just make a no-click element follow the cursor, which is relatively easy

next beacon
#

ok

vocal basin
#
MDN Web Docs

The mask CSS shorthand property hides an element (partially or fully) by masking or clipping a specified area of the image. It is a shorthand for all the mask-* properties. The property accepts one or more comma-separated values, where each value corresponds to a <mask-layer>.

manic basin
#

what does snek stand for

sour steppe
vocal basin
#

!source eval

wise cargoBOT
#
Command: eval

Run Python code and get the results.

Source Code
vocal basin
#

see the filepath

long dragon
sour steppe
long dragon
# sour steppe share the link

that's not website that's a video of how to create this in html css js shery js but i can't use shery js in next js

#

so i want to know

sour steppe
long dragon
#

no bro i use this but its not working i try many times

sour steppe
#

You can ask in a JS server. No clue what you tried or what errors you're getting.

brazen crystal
#

i cant speak

#

why

vocal basin
wise cargoBOT
#
Voice verification

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

burnt marsh
#

Hello, pyguys

#

Pymates

manic basin
wind raptor
amber raptor
#

That is stupidly cheap hosting

weary relic
#

hi

echo bison
#
prefix = '`'

bot = commands.bot(command_prefix=prefix, intents=discord.Intents.all)
#

do not give all intents.

unique wyvern
#
bot = commands.bot(command_prefix=prefix, intents=discord.Intents.all)
woeful blaze
#

how is everyone?

#

health bars done

#

?

somber heath
#

@tall dust ๐Ÿ‘‹

woeful blaze
#

health: 20 Hp

tall dust
somber heath
#

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

woeful blaze
#

hunger: 75.5 hung

tall dust
unique wyvern
woeful blaze
#
import pygame as pyg

#===[init]===#
pyg.init()



class Player:
    def __init__(self, ):
        pass

    def Player_Movement(self, (Player_X, Player_Y), ):
        pass
echo bison
#

`

unique wyvern
#
@foo
def spam():
    pass

is sugar for

def spam():
    pass

spam = foo(spam)
woeful blaze
#
import pygame as pyg

#===[init]===#
pyg.init()



class Player:
    def __init__(self, ):
        pass

    def Player_Movement(self, Player_X, Player_Y, ):
        

        self.Player_X = Player_X
        self.Player_Y = Player_Y

        Player_position = (Player_X , Player_Y)
woeful blaze
#

@wind raptor may i have screen cast?

#

please

somber heath
#

@small zodiac @hearty trout ๐Ÿ‘‹

woeful blaze
#
import pygame as pyg
from random import randint

#===[init]===#
pyg.init()


class Player:
    def __init__():
        pass
        
    def Player_Movement(self,surface):

        
        player_pos = pyg.Vector2(surface.get_width() / 2, surface.get_height() / 2)

        keys = pyg.key.get_pressed()
        if keys[pyg.K_w]:
            player_pos.y -= 300 * dt
        if keys[pyg.K_s]:
            player_pos.y += 300 * dt
        if keys[pyg.K_a]:
            player_pos.x -= 300 * dt
        if keys[pyg.K_d]:
            player_pos.x += 300 * dt

    
    def Create_player (self, surface, rand_color):

        R = randint(0,255)
        G = randint(0,255)
        B = randint(0,255)

        rand_color = (R,G,B)

        player_object = pyg.draw.rect(surface, rand_color)
unique wyvern
#
digits = []
carry = 0
for u, v in zip_longest(reversed(a), reversed(b), fill_value="0"):
    value = int(u) + int(v) + carry
    carry = value & 2 >> 1
    digits.append(value & 1)

return "".join(map(str, reversed(digits)))
wind raptor
wise cargoBOT
#

โœ… @woeful blaze can now stream until <t:1754275725:f>.

woeful blaze
#

keys = pyg.key.get_pressed()
if keys[pyg.K_w]:
player_pos.y -= 300 * dt
if keys[pyg.K_s]:
player_pos.y += 300 * dt
if keys[pyg.K_a]:
player_pos.x -= 300 * dt
if keys[pyg.K_d]:
player_pos.x += 300 * dt

somber heath
#

You could throw in some elifs, there. Another approach I've used is a dictionary that maps keys to functions/methods.

sour steppe
#

!d pygame.draw.rect

wise cargoBOT
#

pygame.draw.rect()```
Draw a rectangle.

rect(surface, color, rect, width=0, border\_radius=-1, border\_top\_left\_radius=-1, border\_top\_right\_radius=-1, border\_bottom\_left\_radius=-1, border\_bottom\_right\_radius=-1) -> Rect

Draws a rectangle on the given surface.
sour steppe
#

!d pygame.Rect

wise cargoBOT
#

pygame.Rect```
pygame object for storing rectangular coordinates

Rect(left, top, width, height) -> Rect

Rect((left, top), (width, height)) -> Rect

Rect(object) -> Rect

Rect() -> Rect...
wind raptor
somber heath
#

@steel wyvern ๐Ÿ‘‹

steel wyvern
#

hello!

#

what do you want?

solid pagoda
#

Hellow

wind raptor
#
@app_commands.command()
async def fruits(interaction: discord.Interaction, fruit: str):
    await interaction.response.send_message(f'Your favourite fruit seems to be {fruit}')

@fruits.autocomplete('fruit')
async def fruits_autocomplete(
    interaction: discord.Interaction,
    current: str,
) -> List[app_commands.Choice[str]]:
    fruits = ['Banana', 'Pineapple', 'Apple', 'Watermelon', 'Melon', 'Cherry']
    return [
        app_commands.Choice(name=fruit, value=fruit)
        for fruit in fruits if current.lower() in fruit.lower()
    ]
still ledge
#

Hello

royal flower
#

lowkey

#

i need me a vscode theme

wind raptor
eternal ether
#

why the hell do i need to confirm 4 popups to delete a file in the cursor project filesystem on a PC? ridiculous

unique wyvern
wind raptor
unique wyvern
#
def walk(node: Node):
    yield node
    for child in node.children:
        yield from walk(child)

for node in walk(root):
    if something(node):
        break
somber heath
#

@bright flume ๐Ÿ‘‹

bright flume
#

wsp

#

i am making a dos tool can u help me (educational purpose only)

somber heath
#

No.

bright flume
#

๐Ÿ˜ญ

somber heath
#

!rule 5

wise cargoBOT
#

5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.

wind raptor
bright flume
#

in college

#

i am learning networking help me

wind raptor
#

We are not a pro-hacking community. Surely, your course has content that covered what you need. Please read your lecture notes.

bright flume
#

alr

royal flower
#

how much u know html

#

lets do some clash of code fr

wind raptor
#

โ–ฌโ–ฌโ–ฌโ–ฌ You have entered the home of Horror Gaming โ–ฌโ–ฌโ–ฌโ–ฌโ–ฌ
โ–ฌโ–ฌโ–ฌโ–ฌโ–ฌโ–ฌโ–ฌโ–ฌ ๐Ÿ‘ปSurvival Horror Network ๐Ÿ‘ป โ–ฌโ–ฌโ–ฌโ–ฌโ–ฌโ–ฌโ–ฌโ–ฌ
SHN Rating for : The Complex Expedition ๐Ÿ‘ป๐Ÿ‘ป๐Ÿ‘ป๐Ÿ‘ป out of ๐Ÿ‘ป๐Ÿ‘ป๐Ÿ‘ป๐Ÿ‘ป๐Ÿ‘ป

I really enjoyed the game and the look of it . The found footage aspect of it works really well !

...

โ–ถ Play video
royal flower
wind raptor
open moth
#

why is everyone silent

#

i'm out of words

#

๐Ÿ’€

somber heath
#

@celest comet ๐Ÿ‘‹

open moth
#

@celest comet I think you're pfp doesn't match up to your name ๐Ÿ˜ญ

wise loom
#

I have an algorithm, I keep it in my backpack ๐ŸŽ’

#

I will not show you it because itโ€™s confidential ๐Ÿค

somber heath
open moth
#

@wise loom Hey

#

I currently workin on interpreter for my programming language

#

@wise loom I do like backend stuff but i hate

#

frontend

#

๐Ÿ˜ญ

unique wyvern
open moth
#

@chilly wolf a raytracing engine ??

#

or may be

#

umm

#

Discord API wrapper in rust

#

๐Ÿ’€

#

This silence is killing me

chilly wolf
#

TI 84 refraction

#

simulation of light passing through a prism

#

It is quite possibly

#

the most simple form of raytracing possible

#

it's a single line

#

as in, the ray

#

one ray

open moth
chilly wolf
#

sure, but I don't have the refration simulation up on there

#

but I can put it up if you'd like

#

here, I will send you my website

#

academic

#

it has a link to the github

open moth
#

hmm alr

vocal basin
#

I might have to mess with Discord's CSS at some point, the missing mic permission popup is way too annoying

#

(as in browser permission)

next beacon
#

hi

#

@somber heath

#

what did you sad? @somber heath

somber heath
#

@weary cedar ๐Ÿ‘‹

weary cedar
#

hi @somber heath

somber heath
#

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

weary cedar
somber heath
#

!code

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.

manic basin
#
print("TASK 3: Employee Skill Matching")

# Given data - Employee skills as sets
john_skills = {"Python", "SQL", "JavaScript", "Git", "Docker", "AWS"}
mary_skills = {"Java", "Python", "MongoDB", "Git", "Kubernetes", "React"}
bob_skills = {"C++", "Python", "Linux", "Git", "Docker", "TensorFlow"}
sarah_skills = {"Python", "SQL", "Tableau", "Excel", "PowerBI", "Git"}

# Project requirements
web_project_skills = {"Python", "JavaScript", "React", "Git", "Docker"}
data_project_skills = {"Python", "SQL", "Tableau", "MongoDB", "TensorFlow"}
devops_project_skills = {"Docker", "Kubernetes", "AWS", "Linux", "Git"}

print("Employee Skills:")
print(f"John: {john_skills}")
print(f"Mary: {mary_skills}")
print(f"Bob: {bob_skills}")
print(f"Sarah: {sarah_skills}")
print(f"\nProject Requirements:")
print(f"Web Project: {web_project_skills}")
print(f"Data Project: {data_project_skills}")

# TODO 1: Find common skills among all employees
common_skills = set()  # TODO: Use set intersection (&) operation

# TODO 2: Find unique skills each employee has
all_other_skills = set()  # TODO: Combine Mary's, Bob's, and Sarah's skills
john_unique = set()       # TODO: Skills only John has (use set difference -)

# TODO 3: Web project matching
# Check which employees can work on web project
# Calculate skill match percentage for each

# John's web project analysis
john_matching_skills = set()  # TODO: Use intersection
john_web_match = 0           # TODO: Calculate percentage

# Mary's web project analysis  
mary_matching_skills = set()  # TODO: Use intersection
mary_web_match = 0           # TODO: Calculate percentage```
#
common_skills = john_skills & mary_skills```
abstract anvil
#

Hi

#

Are fully remote jobs very rare?

manic basin
#

coman_skills----output------ {'Git', 'Python'}

manic basin
#
common_skills = john_skills & mary_skills & bob_skills & sarah_skills
common_skills  ### output {'Git', 'Python'}```
somber heath
#

@whole bear ๐Ÿ‘‹

whole bear
manic basin
#

unique_skills= list (.... , ..... , ....)

whole bear
#

๐Ÿ˜…

somber heath
wise cargoBOT
#
Voice verification

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

somber heath
#

!d set

wise cargoBOT
#
set

class set([iterable])``````py

class frozenset([iterable])```
Return a new set or frozenset object whose elements are taken from *iterable*. The elements of a set must be [hashable](https://docs.python.org/3/glossary.html#term-hashable). To represent sets of sets, the inner sets must be [`frozenset`](https://docs.python.org/3/library/stdtypes.html#frozenset) objects. If *iterable* is not specified, a new empty set is returned.

Sets can be created by several means...
somber heath
#

!e py set() + set()

wise cargoBOT
# somber heath !e ```py set() + set()```

:x: Your 3.13 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     set() + set()
004 |     ~~~~~~^~~~~~~
005 | TypeError: unsupported operand type(s) for +: 'set' and 'set'
manic basin
#
marys_bobs_sarahsskills= mary_skills and bob_skills and sarah_skills```
somber heath
#

!e py print({1, 2, 3} and {4, 5, 6})

wise cargoBOT
manic basin
#
marys_bobs_sarahsskills  ### output {'Excel', 'Git', 'PowerBI', 'Python', 'SQL', 'Tableau'}```
vocal basin
#

Powerflag_bisexual

#

(this is now part of the main joke repertoire)

somber heath
#

@lethal siren ๐Ÿ‘‹

manic basin
#
(mary_skills) + (bobs_skills) + (sarahs skills)```
vocal basin
#

I remember seeing + used with sets but that was in some other language

vocal basin
#

and this is why you should study maths for programming

#

(I learned set theory before using sets in Python)

manic basin
#
johns_sarahs_bobskills= (bob_skills | sarah_skills | mary_skills)
johns_sarahs_bobskills ### {'C++',
 'Docker',
 'Excel',
 'Git',
 'Java',
 'Kubernetes',
 'Linux',
 'MongoDB',
 'PowerBI',
 'Python',
 'React',
 'SQL',
 'Tableau',
 'TensorFlow'}```
vocal basin
#

this should be a newline, not space

manic basin
somber heath
#

!e py a = 123 b = (123) print(a == b)

wise cargoBOT
vocal basin
#

I highly suggest using ruff, it might catch things like unnecessary parentheses

#

okay first time I wrote it, it was correct

#

use tab search

#

modern browsers support it

manic basin
#
john_unique = john_skills - all_other_skills  
john_unique  ### output {'AWS', 'JavaScript'}```
vocal basin
#

and after #

vocal basin
#

I strongly believe that automatic linters don't "make you lazy" about code style, instead they reinforce and teach it

#

very unlike auto-complete's effect

#

(of any sort)

somber heath
#

@quiet creek ๐Ÿ‘‹

#

Dame Edna Everage, often known simply as Dame Edna, is a character created and portrayed by Australian comedian Barry Humphries, known for her lilac-coloured ("wisteria hue") hair and cat eye glasses ("face furniture"); her favourite flower, the gladiolus ("gladdies"); and her boisterous greeting "Hello, Possums!" As Dame Edna, Humphries wrote s...

manic basin
#
john_matching_skills = john_skills & web_project_skills```
#

len(1**5)

#

@somber heath

#
len(john_matching_skills) ** (web_project_skills) * 5
somber heath
#

!e py set() ** 123

wise cargoBOT
# somber heath !e ```py set() ** 123```

:x: Your 3.13 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     set() ** 123
004 |     ~~~~~~^^~~~~
005 | TypeError: unsupported operand type(s) for ** or pow(): 'set' and 'int'
somber heath
#

!e py set() ** set()

wise cargoBOT
# somber heath !e ```py set() ** set()```

:x: Your 3.13 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     set() ** set()
004 |     ~~~~~~^^~~~~~~
005 | TypeError: unsupported operand type(s) for ** or pow(): 'set' and 'set'
manic basin
#

len(john_matching_skills) (web_project_skills)

somber heath
#

!e py 123 * set()

wise cargoBOT
# somber heath !e ```py 123 * set()```

:x: Your 3.13 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     123 * set()
004 |     ~~~~^~~~~~~
005 | TypeError: unsupported operand type(s) for *: 'int' and 'set'
somber heath
#

!e py print(1 / 2)

wise cargoBOT
manic basin
#

len(john_matching_skills)/(web_project_skills) * 5

#

!e

len(john_matching_skills)/(web_project_skills) * 100``
wise cargoBOT
manic basin
#

!e

len(john_matching_skills)/len(web_project_skills) * 100``
wise cargoBOT
pale fable
#

hey

somber heath
#

!e py print(3 / 5 * 100)

wise cargoBOT
pale fable
#

!e
print(3 / 5 * 100)

wise cargoBOT
pale fable
#

wow

somber heath
#

!e py a = 'abc' b = ('abc') print(repr(a)) print(repr(b))

wise cargoBOT
somber heath
#

!e py a = 'abc' b = 'def' c = (a + b) d = a + b print(repr(c)) print(repr(d))

wise cargoBOT
somber heath
#

!e py print(1 / 2 == 1 / (2))

wise cargoBOT
abstract anvil
#

Is there a way for me to check how far away i am from voice verification?

#

How to do the activity blocks?

#

I don't understand why im not verified then.

vocal basin
#

!user in #bot-commands

somber heath
#

!e py print({1, 2, 3} ^ {3, 4, 5})

wise cargoBOT
echo bison
#

what does ^ do ?

somber heath
#

!d set

wise cargoBOT
#
set

class set([iterable])``````py

class frozenset([iterable])```
Return a new set or frozenset object whose elements are taken from *iterable*. The elements of a set must be [hashable](https://docs.python.org/3/glossary.html#term-hashable). To represent sets of sets, the inner sets must be [`frozenset`](https://docs.python.org/3/library/stdtypes.html#frozenset) objects. If *iterable* is not specified, a new empty set is returned.

Sets can be created by several means...
echo bison
#

&

manic basin
#
mary_matching_skills= mary_skills & web_project_skills
mary_matching_skills```
somber heath
#

!e py print({1, 2, 3, 4} & {3, 4, 5, 6})

wise cargoBOT
abstract anvil
#

How many activity blocks do i need?

somber heath
#

!e py print({1, 2, 3, 4} | {3, 4, 5, 6})

wise cargoBOT
manic basin
#

output {'Git', 'Python', 'React'}

#
len(mary_matching_skills)/len(web_project_skills)``
echo bison
#
#include <stdlib.h>
#include <stdio.h>


int main(){
    int a = 7;
    int* ptr_a = &a;
    printf("%p\n", ptr_a);
    return 0;
}
manic basin
#

output 0.6

#
len(mary_matching_skills)/len(web_project_skills) * 100``
#
### output 60.0``
#

yo so i press on this to save right>

#
print("TASK 1: Shopping Cart System")

# Given data
cart_items = ['laptop', 'mouse', 'keyboard', 'monitor', 'laptop', 'speakers']
cart_prices = [999.99, 29.99, 79.99, 299.99, 999.99, 149.99]

print(f"Cart Items: {cart_items}")
print(f"Cart Prices: {cart_prices}")

# TODO 1: Calculate basic statistics
total_items = 0  # TODO: count items
total_cost = 0   # TODO: calculate total cost
most_expensive = 0  # TODO: find highest price
cheapest_item = 0   # TODO: find lowest price```
somber heath
#

!rule 8

wise cargoBOT
#

8. Do not help with ongoing exams. When helping with homework, help people learn how to do the assignment without doing it for them.

manic basin
#
total_items = len(cart_items) len(cart_prices)``
somber heath
#

!d sum

wise cargoBOT
#
sum

sum(iterable, /, start=0)```
Sums *start* and the items of an *iterable* from left to right and returns the total. The *iterable*โ€™s items are normally numbers, and the start value is not allowed to be a string.

For some use cases, there are good alternatives to [`sum()`](https://docs.python.org/3/library/functions.html#sum). The preferred, fast way to concatenate a sequence of strings is by calling `''.join(sequence)`. To add floating-point values with extended precision, see [`math.fsum()`](https://docs.python.org/3/library/math.html#math.fsum). To concatenate a series of iterables, consider using [`itertools.chain()`](https://docs.python.org/3/library/itertools.html#itertools.chain).

Changed in version 3.8: The *start* parameter can be specified as a keyword argument...
manic basin
#
len(cart_items)+len(cart_prices)``
#

the output is 12

somber heath
#

!d max

wise cargoBOT
#
max

max(iterable, *, key=None)``````py

max(iterable, *, default, key=None)``````py

max(arg1, arg2, *args, key=None)```
Return the largest item in an iterable or the largest of two or more arguments.

If one positional argument is provided, it should be an [iterable](https://docs.python.org/3/glossary.html#term-iterable). The largest item in the iterable is returned. If two or more positional arguments are provided, the largest of the positional arguments is returned.

There are two optional keyword-only arguments. The *key* argument specifies a one-argument ordering function like that used for [`list.sort()`](https://docs.python.org/3/library/stdtypes.html#list.sort). The *default* argument specifies an object to return if the provided iterable is empty. If the iterable is empty and *default* is not provided, a [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError) is raised.
manic basin
#
most_expensive = max(cart_items)```
echo bison
somber heath
#

!d list

wise cargoBOT
#

class list([iterable])```
Lists may be constructed in several ways...
somber heath
#

!e list.index

wise cargoBOT
somber heath
#

!e print(dir(list))

wise cargoBOT
# somber heath !e print(dir(list))

:white_check_mark: Your 3.13 eval job has completed with return code 0.

['__add__', '__class__', '__class_getitem__', '__contains__', '__delattr__', '__delitem__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getstate__', '__gt__', '__hash__', '__iadd__', '__imul__', '__init__', '__init_subclass__', '__iter__', '__le__', '__len__', '__lt__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__reversed__', '__rmul__', '__setattr__', '__setitem__', '__sizeof__', '__str__', '__subclasshook__', 'append', 'clear', 'copy', 'count', 'extend', 'index', 'insert', 'pop', 'remove', 'reverse', 'sort']
somber heath
#

!d zip

wise cargoBOT
#
zip

zip(*iterables, strict=False)```
Iterate over several iterables in parallel, producing tuples with an item from each one.

Example...
somber heath
#

!e py foo = 'a' print(foo) foo = 'b' print(foo) foo = 'c' print(foo)

wise cargoBOT
somber heath
#

!e py for foo in 'abc': print(foo)

wise cargoBOT
sleek otter
#

!e

import time
time.sleep(5)
print(5)
wise cargoBOT
somber heath
#

!e py for i in range(3): print(i)

wise cargoBOT
somber heath
#

!e py for _ in range(3): print('Hello, world.')

wise cargoBOT
somber heath
#

!e py fruits = ['apples', 'pears', 'oranges'] for fruit in fruits: print(fruit)

wise cargoBOT
somber heath
#
break
continue```
manic basin
#

for loop?

somber heath
#
for ... in ...:
    ...
else:
    ...```
sleek otter
#

omg I did not know that lol

somber heath
#

!e ```py
if True:
print('A')

if False:
print('B')```

wise cargoBOT
somber heath
#

!e ```py
name = 'Alex'

if name == 'Peter':
print('A')

print('B')```

wise cargoBOT
somber heath
#

!e ```py
name = 'Peter'

if name == 'Peter':
print('A')

print('B')```

wise cargoBOT
somber heath
#

!e ```py
name = 'Alex'

if name == 'Peter':
print('A')

print('B')```

wise cargoBOT
somber heath
#

!e py a = 'Alex' b = 'Peter' print(a == b)

wise cargoBOT
somber heath
#

!e py a = 'Peter' b = 'Peter' print(a == b)

wise cargoBOT
echo bison
#

!e```py
print('alex'=='alex')
print('\n')
print('peter'=='alex')

wise cargoBOT
somber heath
#

!e py print('A') if True: # Exactly one if print('B') elif True: # Zero or more elifs print('C') elif True: print('D') else: # Zero or one else print('E') print('F')

wise cargoBOT
somber heath
#

In this order.

#

Only one in the chain is triggered.

#

!e py print('A') if False: # Exactly one if print('B') elif True: # Zero or more elifs print('C') elif True: print('D') else: # Zero or one else print('E') print('F')

wise cargoBOT
somber heath
#

!e py print('A') if False: # Exactly one if print('B') elif False: # Zero or more elifs print('C') elif True: print('D') else: # Zero or one else print('E') print('F')

wise cargoBOT
cinder mirage
somber heath
#

!e py print('A') if False: # Exactly one if print('B') elif False: # Zero or more elifs print('C') elif False: print('D') else: # Zero or one else print('E') print('F')

wise cargoBOT
manic basin
#

print("TASK 2: Student Grade Management")

Given data - Tuple format: (name, math, science, english, major, credits)

student_alice = ("Alice Johnson", 85, 92, 88, "Computer Science", 15)
student_bob = ("Bob Smith", 78, 85, 90, "Mathematics", 18)
student_carol = ("Carol Davis", 95, 89, 94, "Physics", 12)
student_david = ("David Wilson", 67, 72, 75, "Chemistry", 20)

print("Analyzing Alice's Academic Record:")
print(f"Student data: {student_alice}")

TODO 1: Unpack Alice's tuple and calculate average grade

name = "" # TODO: Extract name from tuple
math_grade = 0 # TODO: Extract math grade
science_grade = 0 # TODO: Extract science grade
english_grade = 0 # TODO: Extract english grade
major = "" # TODO: Extract major
credits = 0 # TODO: Extract credits

somber heath
#

@ocean turret ๐Ÿ‘‹

#

!e py foo = 1, 2, 3 print(foo)

wise cargoBOT
somber heath
#

!e py a, b, c = 1, 2, 3 print(a) print(b) print(c)

wise cargoBOT
echo bison
#

!e```py
'TASK 1: Shopping Cart System'

Given data

cart_items = ['laptop', 'mouse', 'keyboard', 'monitor', 'laptop', 'speakers']
cart_prices = [999.99, 29.99, 79.99, 299.99, 999.99, 149.99]

print(f'Cart Items: {cart_items}\n')
print(f'Cart Prices: {cart_prices}')

most_expensive = max(cart_prices)

1: Calculate basic statistics

total_items = int(len(cart_items)) # count items
total_cost = sum(cart_prices) # calculate total cost

#===[CALCULATE HIGHEST PRICE]===

most_expensive = 0

for price in cart_prices:
new_price = price
if new_price > most_expensive:
most_expensive = new_price # find highest price
#===============

cheapest_item = min(cart_prices) # find lowest price

#====[RESULT]====

print(f'\ntotal items: {total_items}\n\ntotal cost: {total_cost}\n\nMost Exp: {most_expensive}\n\nLeast exp: {cheapest_item}')

somber heath
#

!e py foo = ['apples', 'pears', 'oranges'] a, b, c = foo print(a) print(b) print(c)

wise cargoBOT
echo bison
#

!e```py
'TASK 1: Shopping Cart System'

Given data

cart_items = ['laptop', 'mouse', 'keyboard', 'monitor', 'laptop', 'speakers']
cart_prices = [999.99, 29.99, 79.99, 299.99, 999.99, 149.99]

print(f'Cart Items: {cart_items}\n')
print(f'Cart Prices: {cart_prices}')

most_expensive = max(cart_prices)

1: Calculate basic statistics

total_items = int(len(cart_items)) # count items
total_cost = sum(cart_prices) # calculate total cost

#===[CALCULATE HIGHEST PRICE]===

most_expensive = 0

for price in cart_prices:
new_price = price
if new_price > most_expensive:
most_expensive = new_price # find highest price
#===============

cheapest_item = min(cart_prices) # find lowest price

#====[RESULT]====

print(f'\ntotal items: {total_items}\n\ntotal cost: {total_cost}\n\nMost Exp: {most_expensive}\n\nLeast exp: {cheapest_item}')

wise cargoBOT
# echo bison !e```py 'TASK 1: Shopping Cart System' # Given data cart_items = ['laptop', 'mo...

:white_check_mark: Your 3.13 eval job has completed with return code 0.

001 | Cart Items: ['laptop', 'mouse', 'keyboard', 'monitor', 'laptop', 'speakers']
002 | 
003 | Cart Prices: [999.99, 29.99, 79.99, 299.99, 999.99, 149.99]
004 | 
005 | total items: 6
006 | 
007 | total cost: 2559.94
008 | 
009 | Most Exp: 999.99
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/DD64WYDVXUAY7V5NLTBYUXV5Q4

echo bison
#

!e```py
cart_prices =[9,2,6,4,8]
most_expensive = 0

for price in cart_prices:
print('price:',price)
new_price = price
print('new price:',new_price)
if new_price > most_expensive:
print(new_price)
most_expensive = new_price

paper wolf
#

Or you can use list.sort() :D

echo bison
#

:(

#

!e```py
cart_prices =[1,2,6,4,9,8]
most_expensive = 0

for price in cart_prices:
print('price:',price)
new_price = price
print('new price:',new_price)
if new_price > most_expensive:
print(new_price)
most_expensive = new_price

sour steppe
#

!e

cart_prices =[9,2,6,4,8]
most_expensive = 0

for price in cart_prices:
    new_price = price
    print(f"{new_price} > {most_expensive} ? {new_price > most_expensive}")
    if new_price > most_expensive:
        most_expensive = new_price
wise cargoBOT
manic basin
#
total_items.sort(len(cart_items))``
paper wolf
#

Total_item is not even created yet

#

You should create it first

#

You can't do any dot "." Operation on variable doesn't defined

#

You mean
```py
code()
```

echo bison
#

```py
print('hello, world')
```

manic basin
echo bison
#
print("TASK 2: Student Grade Management")

# Given data - Tuple format: (name, math, science, english, major, credits)
student_alice = ("Alice Johnson", 85, 92, 88, "Computer Science", 15)
student_bob = ("Bob Smith", 78, 85, 90, "Mathematics", 18)
student_carol = ("Carol Davis", 95, 89, 94, "Physics", 12)
student_david = ("David Wilson", 67, 72, 75, "Chemistry", 20)

print("Analyzing Alice's Academic Record:")
print(f"Student data: {student_alice}")

# TODO 1: Unpack Alice's tuple and calculate average grade
name = ""           # TODO: Extract name from tuple
math_grade = 0      # TODO: Extract math grade
science_grade = 0   # TODO: Extract science grade  
english_grade = 0   # TODO: Extract english grade
major = ""          # TODO: Extract major
credits = 0         # TODO: Extract credits
manic basin
#
student_alice=[0]``
echo bison
#

```py
print('hello, world')
```

tacit crane
#

s

vocal basin
#

TODO: being highlighted: another parser inconsistency?

tacit crane
#

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

manic basin
#
print("TASK 2: Student Grade Management")

# Given data - Tuple format: (name, math, science, english, major, credits)
student_alice = ("Alice Johnson", 85, 92, 88, "Computer Science", 15)
student_bob = ("Bob Smith", 78, 85, 90, "Mathematics", 18)
student_carol = ("Carol Davis", 95, 89, 94, "Physics", 12)
student_david = ("David Wilson", 67, 72, 75, "Chemistry", 20)

print("Analyzing Alice's Academic Record:")
print(f"Student data: {student_alice}")

# TODO 1: Unpack Alice's tuple and calculate average grade
name = ""           # TODO: Extract name from tuple
math_grade = 0      # TODO: Extract math grade
science_grade = 0   # TODO: Extract science grade  
english_grade = 0   # TODO: Extract english grade
major = ""          # TODO: Extract major
credits = 0         # TODO: Extract credits
vocal basin
#

I wonder if namedtuple is unpackable

#

probably is

echo bison
#

!e```py
x = 'first_value','second_value'
print(x)

wise cargoBOT
obsidian dragon
vocal basin
#

what's a super mod

paper wolf
#

Put parenthesis to make it more intuitive

obsidian dragon
manic basin
#
student_alice[0]``
echo bison
#

!e```py
x = ('first_value'),('second_value')
print(x)

wise cargoBOT
tacit crane
#

student_alice [0]

sour steppe
paper wolf
sour steppe
#

!e

a = ('huh', 'test')
print(a [0])
wise cargoBOT
sour steppe
#

Well... TIL

vocal basin
#

imagine if it worked like in C: 0[("a", "b")]

tacit crane
#
name, age, rank = student_alice```
paper wolf
vocal basin
#

@somber heath reference understood

somber heath
#

@pure basin ๐Ÿ‘‹

vocal basin
#

the three Os

obsidian dragon
somber heath
manic basin
#
student_alice[0]
'Alice Johnson'


name = "Alice Johnson"
name
####output Alice johnson```
manic basin
vocal basin
#

hmm

echo bison
#

!e

from forbiddenfruit import curse

def __getitem__(self, other):
    return other[self]

curse(int, "__getitem__", __getitem__)
print(["a", "b", "c"]1)
wise cargoBOT
manic basin
#

HALLOOOOOOOOOOO

vocal basin
#

it's slotted, likely that's why can't be monkey patched

tacit crane
#
name, age, rank = student_alice```
vocal basin
#

!e

from forbiddenfruit import curse

def index(self, other):
    return other[self]

curse(int, "index", index)
print(1 .index(["a", "b", "c"]))
wise cargoBOT
vocal basin
#

finally

#

__getitem__ just happens not to be overwritable that well

paper wolf
#

Damn idk that python has that cursed library

sour steppe
wise cargoBOT
tacit crane
vocal basin
paper wolf
#

Use bracket

vocal basin
#

parentheses aren't required on the right side, just like how they aren't required on the left side

manic basin
#
student_alice = ("Alice Johnson", 85, 92, 88, "Computer Science", 15)
print(student_alice[0])```
tacit crane
#

[([{"name": "JAX", "Gay": True}])]

manic basin
#
### output alice johnson```
tacit crane
#

!e

student_alice = ("Alice Johnson", 85, 92, 88, "Computer Science", 15)
print(student_alice[0])```
wise cargoBOT
tacit crane
#

!e

student_alice = ("Alice Johnson", 85, 92, 88, "Computer Science", 15)
name, math, science, english, major, credits = student_alice
print(f"Student: {name}, Math: {math}, Science: {science}, English: {english}, Major: {major}, Credits: {credits}")
wise cargoBOT
open moth
#

@manic basin what are you tryin to do?

#

i mean your question

echo bison
#

result

echo bison
#
print("TASK 2: Student Grade Management")

# Given data - Tuple format: (name, math, science, english, major, credits)
student_alice = ("Alice Johnson", 85, 92, 88, "Computer Science", 15)
student_bob = ("Bob Smith", 78, 85, 90, "Mathematics", 18)
student_carol = ("Carol Davis", 95, 89, 94, "Physics", 12)
student_david = ("David Wilson", 67, 72, 75, "Chemistry", 20)

print("Analyzing Alice's Academic Record:")
print(f"Student data: {student_alice}")

# TODO 1: Unpack Alice's tuple and calculate average grade
name = ""           # TODO: Extract name from tuple
math_grade = 0      # TODO: Extract math grade
science_grade = 0   # TODO: Extract science grade  
english_grade = 0   # TODO: Extract english grade
major = ""          # TODO: Extract major
credits = 0         # TODO: Extract credits
open moth
#

@manic basin you wanna calculate avg right ?

echo bison
#

correct

open moth
#

bro you're confused ๐Ÿ˜‚

echo bison
#

its okay you did a lot today ๐Ÿ™ƒ

open moth
#

sooo

#

my solution would be

#

wait

sour steppe
#

let him cook

open moth
#

let's first extract

#

grades

manic basin
#
student_alice = ("Alice Johnson", 85, 92, 88, "Computer Science", 15)
print(student_alice[0])
### Alice Johnson

name='Alice Johnson'```
open moth
#

name, *grades, major, credits = student_alice
@manic basin

#

easy

#

my internet sucks bruh ๐Ÿ˜ญ

manic basin
open moth
open moth
manic basin
#

yes and also did you get the name

#

then after the grades

open moth
#

yes

manic basin
#

so that is like a short of what i could have done and what would have taken more space

#

and when you wrote grades what will be the output

wise cargoBOT
#
Missing required argument

code

open moth
#

!e

print("TASK 2: Student Grade Management")

# Given data - Tuple format: (name, math, science, english, major, credits)
student_alice = ("Alice Johnson", 85, 92, 88, "Computer Science", 15)
student_bob = ("Bob Smith", 78, 85, 90, "Mathematics", 18)
student_carol = ("Carol Davis", 95, 89, 94, "Physics", 12)
student_david = ("David Wilson", 67, 72, 75, "Chemistry", 20)

print("Analyzing Alice's Academic Record:")
print(f"Student data: {student_alice}")
print('--------------------------')
name, *grades, major, credits = student_alice
# Now For avg
print(f"Name {name}")
print(sum(grades)/len(grades))
print(f"Major {major}")
wise cargoBOT
open moth
#

tbh there are tons of ways

#

to do this problem

#

๐Ÿ˜ญ

#

sry

manic basin
#
student_alice = ("Alice Johnson", 85, 92, 88, "Computer Science", 15)
print(student_alice[0])```
open moth
#

@manic basin dw ๐Ÿซ‚ it will be hard for a day or two

#

you'll get it

manic basin
#

name=alice_johnson

#
name=student_alice[0]
### output Alice johnson
``
echo bison
#

from flask import Flask, request
import ipinfo
import json





def loadinfo(my_ip):

    print("My public IP address is:", my_ip)
    access_token = '4a96fcf1e3e3af'
    handler = ipinfo.getHandler(access_token)
    details = handler.getDetails(my_ip)

    with open('ip.txt', 'a') as f:
        json.dump(details.all, f, indent=4)
    print('success:', my_ip)
    return details


app = Flask(__name__)
iplist = []
@app.route('/')
def index():
    ip = request.remote_addr
    details = loadinfo(ip)
    return f"Hello, \n{details.ip}"
app.run(host='0.0.0.0', port=5000)
#

!e```py

from flask import Flask, request
import ipinfo
import json

def loadinfo(my_ip):

print("My public IP address is:", my_ip)
access_token = '4a96fcf1e3e3af'
handler = ipinfo.getHandler(access_token)
details = handler.getDetails(my_ip)

with open('ip.txt', 'a') as f:
    json.dump(details.all, f, indent=4)
print('success:', my_ip)
return details

app = Flask(name)
iplist = []
@app.route('/')
def index():
ip = request.remote_addr
details = loadinfo(ip)
return f"Hello, \n{details.ip}"
app.run(host='0.0.0.0', port=5000)

wise cargoBOT
echo bison
#
import os
os.system('pip install Flask')
manic basin
#
math_grade=student_alice[1]
math_grade
### output 85``
echo bison
#

!e```py
import os
os.system('pip install Flask')

wise cargoBOT
echo bison
#

!e```py
import requests
print('e')

wise cargoBOT
# echo bison !e```py import requests print('e') ```

:x: Your 3.13 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     import requests
004 | ModuleNotFoundError: No module named 'requests'
echo bison
#

!e```py
import request
print('e')

wise cargoBOT
# echo bison !e```py import request print('e') ```

:x: Your 3.13 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     import request
004 | ModuleNotFoundError: No module named 'request'
obsidian dragon
#

!e
import os
os.system("pip list")
print('e')

wise cargoBOT
manic basin
#
science_grade=student_alice[2]
science_grade
### output 92``
obsidian dragon
#

!e
import os
x = os.system("pip list")
print()
print("done")

wise cargoBOT
timid pewter
#

"this is not your btn to click". wht does that mean

obsidian dragon
#

!e
import os
x = os.system("pip list")
print(x)
print("done")

echo bison
#
import subprocess
import sys

def install(package):
    subprocess.check_call([sys.executable, "-m", "pip", "install", package])
install('Flask')
print('e')
wise cargoBOT
echo bison
#

!e```py
from Flask import flask

wise cargoBOT
# echo bison !e```py from Flask import flask ```

:x: Your 3.13 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     from Flask import flask
004 | ModuleNotFoundError: No module named 'Flask'
obsidian dragon
#

!e

import pkg_resources

installed_packages = [d.project_name for d in pkg_resources.working_set]
for pkg in installed_packages:
    print(pkg)
print("done")
open moth
#

@manic basin let's say you have ten box's arranged in a line. each has a sticker on them with which represents the position of the box in a line in which they are arranged.

let's i told you to go and bring box number 5 how would know which box to pick?? by looking at there index/position right???

that's how array/list/tuple works in python.

all these are just items arranged in a line (order matters here)

you access each item in array/list/tuple using there index/position

frnds = ["Alexa", "Omar", "Siri"]
print("My Friend is ", frnds[0]) # Alexa 
print("My Friend is ", frnds[1]) # Omar
print("My Friend is ", frnds[2]) # Siri
print("My Friend is ", frnds[3]) # Error : out of index something

when you're teacher told you to unpack the tuple she just want you to unpack the tuple/array/list and store them respective variable.

alexa = frnds[0] # first element stored in alexa variable which is her name

Note : tuple and list have different properties

wise cargoBOT
# obsidian dragon !e ```py import pkg_resources installed_packages = [d.project_name for d in pkg...

:x: Your 3.13 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 4, in <module>
003 |     result = subprocess.run(["pip", "list"], capture_output=True, text=True)
004 |   File "/snekbin/python/3.13/lib/python3.13/subprocess.py", line 554, in run
005 |     with Popen(*popenargs, **kwargs) as process:
006 |          ~~~~~^^^^^^^^^^^^^^^^^^^^^^
007 |   File "/snekbin/python/3.13/lib/python3.13/subprocess.py", line 1039, in __init__
008 |     self._execute_child(args, executable, preexec_fn, close_fds,
009 |     ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
010 |                         pass_fds, cwd, env,
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/RHNQ2TTW4PG3PH62CRMNZSK4IQ

open moth
#

Now There are lot of ways to unpack a Tuple/list

echo bison
#
import datetime as dt
print(str(dt.datetime.now))
open moth
#

you should

#

explorer

#

all the ways

#

to learn

echo bison
#

!e```py
import datetime as dt
print(str(dt.datetime.now))

wise cargoBOT
echo bison
#
import datetime as dt
now = dt.datetime.now
print(now)
#

!e```py
import datetime as dt
now = dt.datetime.now
print(now)

wise cargoBOT
sour steppe
#

now()

echo bison
#
import datetime as dt
now = dt.datetime.now()
print(now)
obsidian dragon
#

!e

import pkg_resources

installed_packages = [d.project_name for d in pkg_resources.working_set]
for pkg in installed_packages:
    print(pkg)
print("done")
wise cargoBOT
vocal basin
wise cargoBOT
# vocal basin !e ```py from subprocess import check_output from sys import executable print(ch...

:white_check_mark: Your 3.13 eval job has completed with return code 0.

001 | anyio==4.9.0
002 | arrow==1.3.0
003 | attrs==25.3.0
004 | beautifulsoup4==4.13.4
005 | capstone==5.0.6
006 | contourpy==1.3.2
007 | cycler==0.12.1
008 | fishhook==0.3.5
009 | fonttools==4.58.1
010 | forbiddenfruit==0.1.4
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/PLWJPGGXDME7Q5CXR3ORADMNVA

vocal basin
#

presumably you're looking for this?

sour steppe
#

!e

import datetime as dt
now = dt.datetime.now()
print(now)
wise cargoBOT
manic basin
#

THANKS GUYS FOR THE HELP AND PLEASE HAVE A GREAT DAY

wise cargoBOT
#
Huh? No.

Package could not be found.

sour steppe
#

!pip forbiddenfruit

wise cargoBOT
vocal basin
#

!pypi fishhook

wise cargoBOT
#

Allows for runtime hooking of static class functions

Released on <t:1753877368:D>.

vocal basin
#

another cursed crate

#

Discord deselecting text when hovering out of the code block is so annoying

woeful blaze
#

player_movement = Player.Player_Movement(screen,dt)

obsidian dragon
#

!e

import os
import sys

# Manual pip freeze simulation
site_packages = next(p for p in sys.path if 'site-packages' in p)
pkgs = [d for d in os.listdir(site_packages) 
        if os.path.isdir(os.path.join(site_packages, d))]
print("\n".join(pkgs))
wise cargoBOT
# obsidian dragon !e ```py import os import sys # Manual pip freeze simulation site_packages = ne...

:white_check_mark: Your 3.13 eval job has completed with return code 0.

001 | trio
002 | matplotlib
003 | sniffio
004 | numpy-2.3.2.dist-info
005 | yarl
006 | packaging-25.0.dist-info
007 | fuzzywuzzy-0.18.0.dist-info
008 | pytz-2025.2.dist-info
009 | sympy-1.14.0.dist-info
010 | sniffio-1.3.1.dist-info
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/VJQFYH4AMUAO3XS7ITCS7LHAEQ

vocal basin
#

what a weirdly sorted list

woeful blaze
vocal basin
echo bison
woeful blaze
wise cargoBOT
#

:white_check_mark: Your 3.13 eval job has completed with return code 0.

001 | 
002 | Generating tree from: /home
003 | 
004 | โ–ฒ UP Level 0: /home
005 | โ””โ”€โ”€ main.py
006 | 
007 | โ–ผ ORIGINAL PATH TREE: /home
008 | โ””โ”€โ”€ main.py
obsidian dragon
#

denied low key

open moth
#

obv they wouldn't run bloated windows ๐Ÿ˜ญ

#

!e

import platform

print(platform.system())      # e.g. 'Windows', 'Linux', 'Darwin' (macOS)
print(platform.release())     # OS version
print(platform.platform())    # Full platform info
wise cargoBOT
echo bison
#
import os
os.system('python3 pip install Flask')
#

!e```py
import os
os.system('python3 pip install Flask')
print('dondonedydone')

wise cargoBOT
echo bison
#

!e```py
import os
os.system('python3 pip install autogui')
print('dondonedydone')

wise cargoBOT
echo bison
#

!e

import os
import sys

# Manual pip freeze simulation
site_packages = next(p for p in sys.path if 'site-packages' in p)
pkgs = [d for d in os.listdir(site_packages) 
        if os.path.isdir(os.path.join(site_packages, d))]
print("\n".join(pkgs))
wise cargoBOT
# echo bison !e ```py import os import sys # Manual pip freeze simulation site_packages = ne...

:white_check_mark: Your 3.13 eval job has completed with return code 0.

001 | trio
002 | matplotlib
003 | sniffio
004 | numpy-2.3.2.dist-info
005 | yarl
006 | packaging-25.0.dist-info
007 | fuzzywuzzy-0.18.0.dist-info
008 | pytz-2025.2.dist-info
009 | sympy-1.14.0.dist-info
010 | sniffio-1.3.1.dist-info
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/V7WBWBZBURC56XWTABQV2QRY64

obsidian dragon
#

!e

from subprocess import check_output
from sys import executable
print(check_output([executable, "-m", "pip", "freeze"], text=True))
from subprocess import check_output
from sys import executable
print(check_output([executable, "-m", "pip", "freeze"], text=True))
open moth
#

!e

import urllib.request, tarfile, os, stat; u="https://github.com/astral-sh/uv/releases/download/0.1.28/uv-linux-x86_64.tar.gz"; f="uv.tar.gz"; d="uv-bin"; urllib.request.urlretrieve(u, f); tarfile.open(f).extractall(d); os.chmod(d+"/uv", stat.S_IXUSR | stat.S_IRUSR | stat.S_IWUSR); os.rename(d+"/uv", os.path.expanduser("~/.local/bin/uv"))
wise cargoBOT
# open moth !e ```python import urllib.request, tarfile, os, stat; u="https://github.com/ast...

:x: Your 3.13 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/snekbin/python/3.13/lib/python3.13/urllib/request.py", line 1319, in do_open
003 |     h.request(req.get_method(), req.selector, req.data, headers,
004 |     ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
005 |               encode_chunked=req.has_header('Transfer-encoding'))
006 |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
007 |   File "/snekbin/python/3.13/lib/python3.13/http/client.py", line 1338, in request
008 |     self._send_request(method, url, body, headers, encode_chunked)
009 |     ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
010 |   File "/snekbin/python/3.13/lib/python3.13/http/client.py", line 1384, in _send_request
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/VAOHQPQVVBGLPUNJWKJ3NFAFQY

obsidian dragon
#

!e

import os
os.system('python3 pip install Flask')
from subprocess import check_output
from sys import executable
print(check_output([executable, "-m", "pip", "freeze"], text=True))
wise cargoBOT
# obsidian dragon !e ```py import os os.system('python3 pip install Flask') from subprocess import...

:white_check_mark: Your 3.13 eval job has completed with return code 0.

001 | anyio==4.9.0
002 | arrow==1.3.0
003 | attrs==25.3.0
004 | beautifulsoup4==4.13.4
005 | capstone==5.0.6
006 | contourpy==1.3.2
007 | cycler==0.12.1
008 | fishhook==0.3.5
009 | fonttools==4.58.1
010 | forbiddenfruit==0.1.4
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/AXFGNT5WPCQAMMABXREDKPSEKM

echo bison
#

!e```py
import os
os.system('python3 pip uninstall arrow')
print('dondonedydone')

wise cargoBOT
echo bison
#

!e```py
import os
os.system('python3 pip install Flask')
print('dondonedydone')

wise cargoBOT
open moth
#

!e

import tarfile, shutil, os, stat

with tarfile.open('uv-linux-x86_64.tar.gz') as tar:
    tar.extractall('uv-tmp')

shutil.copy('uv-tmp/uv', os.path.expanduser('~/.local/bin/uv'))
os.chmod(os.path.expanduser('~/.local/bin/uv'), stat.S_IXUSR | stat.S_IRUSR | stat.S_IWUSR)
wise cargoBOT
# open moth !e ```python import tarfile, shutil, os, stat with tarfile.open('uv-linux-x86_6...

:x: Your 3.13 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 3, in <module>
003 |     with tarfile.open('uv-linux-x86_64.tar.gz') as tar:
004 |          ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
005 |   File "/snekbin/python/3.13/lib/python3.13/tarfile.py", line 1875, in open
006 |     return func(name, "r", fileobj, **kwargs)
007 |   File "/snekbin/python/3.13/lib/python3.13/tarfile.py", line 1943, in gzopen
008 |     fileobj = GzipFile(name, mode + "b", compresslevel, fileobj)
009 |   File "/snekbin/python/3.13/lib/python3.13/gzip.py", line 203, in __init__
010 |     fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/FS2MMQVODTZKEBDSILY4X5RR64

obsidian dragon
#

!e

import os
os.system('python3 pip install Flask')
from subprocess import check_output
from sys import executable
print(check_output([executable, "-m", "pip", "freeze"], text=True))
wise cargoBOT
# obsidian dragon !e ```py import os os.system('python3 pip install Flask') from subprocess import...

:white_check_mark: Your 3.13 eval job has completed with return code 0.

001 | anyio==4.9.0
002 | arrow==1.3.0
003 | attrs==25.3.0
004 | beautifulsoup4==4.13.4
005 | capstone==5.0.6
006 | contourpy==1.3.2
007 | cycler==0.12.1
008 | fishhook==0.3.5
009 | fonttools==4.58.1
010 | forbiddenfruit==0.1.4
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/JXBBL6R7R422TWPY2DYHUN2TQ4

open moth
#

it is sandboxed ๐Ÿ˜” we can't access internet without urllib

#

lol

somber heath
#

Even with it, you couldn't.

echo bison
#

yea

#

!e```py
import subprocess
import sys

def force_install(package):
try:
subprocess.check_call([sys.executable, "-m", "pip", "install", "--force-reinstall", package])
print(f"Successfully forced installation of {package}")
except subprocess.CalledProcessError as e:
print(f"Failed to force install {package}: {e}")

Example usage

force_install("requests")

wise cargoBOT
# echo bison !e```py import subprocess import sys def force_install(package): try: ...

:x: Your 3.13 eval job timed out or ran out of memory.

001 | Defaulting to user installation because normal site-packages is not writeable
002 | WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f1da8185a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/requests/
003 | WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f1da810f110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/requests/
004 | WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f1da810f390>: Failed to establish a new connection: [Errno -3] 
... (truncated - too long)

Full output: https://paste.pythondiscord.com/FAHIYCUMB6G5NUA6WJJYMT7QW4

open moth
#

I was jus thinking Ive seen him somewhere

#

lol

echo bison
#

xd

open moth
#

now i know where

echo bison
#

sais nu uh

open moth
#

who made this bot??

vocal basin
#

!source

wise cargoBOT
woeful blaze
#

player.draw(screen,ocean_blue)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
TypeError: Player.draw() takes 2 positional arguments but 3 were given

#

brb

naive hearth
chilly wolf
#

I'm just popping in here for a second so that all of you can laugh at me

#

i was looking at some of my old code and just

#

I'm
what

#

what is this

    global chunks, hpbar
    if chunks > 0:
        if chunks < 1:
            chunks = 1
        chunks = round(chunks)
    chunk_count = 0  # define starting point for hp blocks
    hpbar = ''  # define empty hpbar
    dmg_total = chunk_total - chunks  # calculate total damage taken
    dmg_count = 0  # define starting point for hp blocks
 
    if chunk_count < chunk_total:
        while chunk_count < chunks:
            hpbar = hpbar + p
            chunk_count += 1  # fill hbar with current health
    if dmg_count < dmg_total:
        while dmg_count < dmg_total:
            hpbar = hpbar + d
            dmg_count += 1  # fill remaining space with total damage taken```
#

what was I thinking

#

single letter globals

#

the whole thing is this

stuck furnace
#
    if chunks > 0:
        if chunks < 1:
``` ![thinkmon](https://cdn.discordapp.com/emojis/436537420067110913.webp?size=128 "thinkmon")
chilly wolf
#

rube goldberg machine of globals and unreadable chunks

#

And it was all just to display something that looks like this, a text representation of a healthbar

[========____]

vocal basin
stuck furnace
vocal basin
#

(I meant integer and threads)

chilly wolf
#

yah it is

stuck furnace
chilly wolf
#

look

#

I was using TEXT FILES to store the player and enemy info

#

on a discord bot

vocal basin
#

without .json extension

chilly wolf
#

It's all lists and dicts

#

just nested lists, dicts, and tuples

#

CAUTION: MAY CAUSE EXISTENTIAL DREAD

vocal basin
#

(it's slightly more than that while running, some temporary files are involved to make it durable)

chilly wolf
#

Oh!

#

!

#

how'd you do that?

vocal basin
# chilly wolf how'd you do that?

rule 1: never use JSON for the whole thing, only use JSON lines
rule 2: cannot reasonably get durability with just a single readable file, use auxiliary files to ensure it
rule 3: never overwrite anything without having a copy nearby, doing so will lead to data loss

#

the easiest way to get persistence is to just store the log of all changes

#

and keep a separate pointer to the last valid entry alongside it when not yet fsyncd

vocal basin
# chilly wolf !

example from docs (5 slightly different way to write a change)


async def _main(connection: DbConnection):
    value0 = connection.get('increment-0', 0)
    await connection.set('increment-0', value0 + 1)

    value1 = connection.get('increment-1', 0)
    connection.set_nowait('increment-1', value1 + 1)
    await connection.commit()

    async with connection.transaction() as transaction:
        value2 = transaction.get('increment-2', 0)
        transaction.set_nowait('increment-2', value2 + 1)

    async with connection.transaction() as transaction:
        value3 = transaction.get('increment-3', 0)
        transaction.set_nowait('increment-3', value3 + 1)
        await transaction.commit()

    with connection.transaction() as transaction:
        value4 = transaction.get('increment-4', 0)
        transaction.set_nowait('increment-4', value4 + 1)
        await transaction.commit()

    with connection.transaction() as transaction:
        value5 = transaction.get('increment-5', 0)
        transaction.set_nowait('increment-5', value5 + 1)
    await connection.commit()
#

very important thing: this assumes single-threaded access

#

since all the actual data is just a dict in memory

chilly wolf
#

this is magnificent

#

you've taken a constraint and made it your home

vocal basin
#

I think I have the design doc for it somewhere

#

or at least the current description of the protocol

chilly wolf
#

That would be pretty awesome possum

brisk heath
#

@wind raptor I can't speak

#

I don't know why

#

It says I haven't been in this server for three days

#

and it requires me to send 25 non-deleted messages

#

Can I ask you something real?

#

How long will it take me to become a python expert?

#

1 year, I can do that definitely

vocal basin
#

(can't hear yet)

#

now works

#

I forgot the VPN again

#

currently making a thing that generates a Makefile from a Cargo workspace
(for publishing stuff in the correct order)

vocal basin
#

write tests

#

take-home stuff for job interviews is homework too, whatever you do when you're not being actively watched kind of is

amber raptor
vocal basin
#

Zoom

#

assignment

#

was about to give a revolutionary suggestion: you're in class => ask in class

cerulean ridge
#

@amber raptor

#
data1.addRow([new Date(1754079421000),0,0,201,162,2896200,2995192,3805,'3805/hr',3634,'3634/hr',3753,0,0,0,0,0,0,0,0,]);
data1.addRow([new Date(1754081221000),0,0,202,163,2898105,2997038,3801,'3801/hr',3653,'3653/hr',3650,0,0,0,0,0,0,0,0,]);
data1.addRow([new Date(1754083021000),0,0,202,162,2900313,2999012,4658,'4658/hr',4285,'4285/hr',3651,0,0,0,0,0,0,0,0,]);
amber raptor
vocal basin
#

thankfully I quit EVE Online before joining any player corporation

#

@dry jasper " fortunately, it's 'with' not 'to' "

dry jasper
cerulean ridge
dry jasper
#

@valid stag

scarlet halo
#

been working on this for like 3 days :P

timid quartz
#

@vocal basinhelp me code gui pls

vocal basin
#

I don't work with GUI outside the Web

timid quartz
#

Ok

scarlet halo
#

by salt

unique wyvern
#

!pypi mind_the_gaps

wise cargoBOT
#

A library for unions, intersections, subtractions, and xors of intervals (gaps).

Released on <t:1749898805:D>.

wise cargoBOT
#

src/mind_the_gaps/gaps.py line 35

class Endpoint[T: SupportsLessThan]:```
random copper
#

Anyone know Unity?

scarlet halo
random copper
#

Aight init..

I want to make a game...

#

You need hosting?

vocal basin
#

with Rust I somehow just manage to model everything so that inheritance isn't needed

#

ever since dyn upcasting was introduced, I never used it once

#

(Rust's equivalent of a static_cast)

whole tusk
#

anyone good in file magament for images

#

such as drwaing refrences

wise loom
#

@unique wyvern try it on [[2,3],[4,5],[6,7],[8,9],[1,10]]
you should get [[1,10]]

vocal basin
#

genericity often simplifies code by removing assumptions

#

so you just don't have to think about nuances

random copper
#

I nuance you alright..

unique wyvern
#

!pypi rects

wise cargoBOT
#

A library for unions, intersections, subtractions, and xors of rectangles.

Released on <t:1701189244:D>.

unique wyvern
scarlet halo
#

should i put cmdline arguments in the main.rs or a separate file?

vocal basin
scarlet halo
#

yes.

vocal basin
#

does the thing you're making have lib.rs in addition to main.rs?

scarlet halo
#

it will, yes

#

Doesn't currently.

#

i might just put args in a separate file, i dont know how complicated this might get.

vocal basin
#

@scarlet halo don't listen to anything ChatGPT says about Rust, it doesn't understand at all

#

same for StackOverflow