#python-discussion

1 messages Β· Page 252 of 1

vale wasp
#

Nice.

pallid garden
#

there is a python binding for it

#

so i can just pass data in for compilation

vale wasp
#

So you use it to create PDFs?

pallid garden
#

or markdown, or plain text

#

or even html

ionic bluff
#

i dont even understand how to begin to tackle that. I pulled a table off of wikipedia and it almost melted my brain.

I just need to do more of that type of thing.

ionic bluff
# pallid garden or even html

eli5:
what's your general flow with that anyway? You mentioned typst, using some regex a while ago.

So scrape job posting, ingest into some logic. Then output to typst in some different formats with some markdown templates?

whats pandas for? What gets put into dataframes?

runic flower
dry pike
#

Xelf when he frames the data: now this is 🐼

runic flower
#

dataframe:

#

columns replaced with links to the character page, rows replaced with links that drill down, cells replaced with checkmarks, but it's still a dataframe

boreal river
#

hello! i'm new

runic flower
white knot
#

hi

solid totem
#

hi

vale wasp
#

Greetings and salutations.

#

So you want to tell people how to cheat?

marsh tusk
#

Thanks now I can cheat

solid totem
#

enjoy

jagged belfry
#

!kick 1336231308560433184 sharing js cheats as their first message

edgy krakenBOT
#

failmail :ok_hand: applied kick to @solid totem.

runic flower
#

I havn't seen kick done before, what's that do?

marsh tusk
#

That's they're first message?πŸ’€

marsh tusk
patent kestrel
#

removes them from the server but they can rejoin

runic flower
vale wasp
#

Stronger than a warning, not yet a ban.

marsh tusk
#

Feel like cheats should be a banπŸ€”

#

Just less work for devs in my opinion

vale wasp
#

No argument from me.

lost lagoon
#

I believe that's their goal

finite rose
#

Man dealing with memory in C is like driving a big bus on one of those narrow mountain roads in the Peruvian Andes. One tiny deviation from the path and you fall to your death = segmentation fault. πŸ˜΅β€πŸ’«

vale wasp
#

I kinda wish I would've been able to file a security report for the developers but I guess I can't now.

vale wasp
marsh tusk
#

I was about to debug all those linker errors but then realized i forgot to link to luaπŸ’€

finite rose
#

segmentation fault is the worst error message ever. It's basically "bruh, your app crashed. You did a wrong somewhere. Good luck."

vale wasp
lost lagoon
runic flower
lost lagoon
#

dealing with memory is not realy that bad....

marsh tusk
runic flower
vale wasp
marsh tusk
#

I gotta develop discipline like uhh😭

lost lagoon
#

the time I haven't touched compiled languages before I'm scared on managing memory but as I realized it's just a matter of tending to a crying ticking baby bomb

vale wasp
marsh tusk
marsh tusk
#

Can't pay me enough to do that

lost lagoon
#

still remember my fist memory leak

marsh tusk
#

The good ol days

vale wasp
# marsh tusk πŸ’€

That was my first engineering job. I had been hired to do support and help with QA for the product. Lead engineer was trying to find someone but couldn't. He suggested I do a project to show I could fill that role so I wrote an HTTP server to handle the config for it. No filesystem so it was essentially function pointers for each page.

vale wasp
marsh tusk
runic flower
patent kestrel
#

was ur solution RIIR

raw bramble
#

Is a tiling window manager good for programming?

runic flower
marsh tusk
raw bramble
# runic flower Could be.

Ive just installed arch with hyprland on a vm and i really like how hyprland works (kitty won’t work though ;-;)

vale wasp
# marsh tusk I remember this one time I caused a memory leak in sdl😭

That was the nice thing about embedded - we statically allocated 99% of things and the few things that weren't were dynamically allocated at startup and persistent. The only reason they were dynamically allocated was because we needed to know what resolution we were recording at and the determined how many buffers we could have.

raw bramble
marsh tusk
raw bramble
vale wasp
raw bramble
#

I think like 8gb storage?

runic flower
marsh tusk
raw bramble
sand hornet
#

Good Timezone chat

marsh tusk
raw bramble
#

I had 20gb left so I had to do a bit of tidying, I’m on 90gb now but I still feel like that’s not much

dim kelp
#

4gb is enough for every distro and os except win 11

marsh tusk
#

Would have over a 100 but uhhh kinda don't wanna get rid of fortnite yet(haven't opened it in months)

marsh tusk
runic flower
raw bramble
marsh tusk
raw bramble
marsh tusk
#

Love my rpgs

marsh tusk
raw bramble
#

Surely there’s a way for them to make Fortnite and Genshin smaller

runic flower
marsh tusk
raw bramble
#

I don’t know if I’m able to play it on phone though

raw bramble
runic flower
#

wow - 150gb.

marsh tusk
vale wasp
mighty torrent
#

Hello, im new, do u think that learn py its worth?

raw bramble
sand hornet
runic flower
marsh tusk
runic flower
sand hornet
raw bramble
runic flower
vale wasp
raw bramble
#

I’m still waiting for that end update

marsh tusk
runic flower
ornate wren
#

@vale wasp did you ever worked with esp32? i'm curious to the hardware you used for the bare metal stuff

raw bramble
# marsh tusk Play mods

Only mod pack I love is Antimatter Chemistry, it’s a completely different feel from regular Minecraft but I find it so fun, you start with nothing in a white void and break down and combine atoms to create everything you use

runic flower
marsh tusk
vale wasp
marsh tusk
#

Just need ideas lmao

vale wasp
raw bramble
marsh tusk
dim kelp
#
bank = {"Cash":0}

def action():
    print("Press D to deposit money, W to withdraw")
    action = input("Type your action: ")
    if action == "D":
        deposit(bank)

def deposit(bank):
    deposit_amount = input("How much money do you want to deposit: ")
    bank["Cash"] = deposit_amount
    print(bank["Cash"])

action()

```is this correct? It does what I expect.

Press D to deposit money, W to withdraw
Type your action: D
How much money do you want to deposit: 67
67

vale wasp
raw bramble
marsh tusk
vale wasp
runic flower
ornate wren
dim kelp
surreal knot
runic flower
vale wasp
raw bramble
#

You are setting the balance not depositing more money

vale wasp
ornate wren
#

The best way to build an balance is using a list (history) of the "transactions" (money added or removed)

#

and adding money or removing money should be dealt like a database transaction, like an atomic action

vale wasp
dim kelp
# surreal knot if you deposit 10, then deposit 5, the user will only have 5 instead of 15
bank = {"Cash":10}

def action():
    print("Press D to deposit money, W to withdraw")
    action = input("Type your action: ")
    if action == "D":
        deposit(bank)

def deposit(bank):
    deposit_amount = int(input("How much money do you want to deposit: "))
    bank["Cash"] += deposit_amount
    print(bank["Cash"])

action()
``` @runic flower fixed?

Press D to deposit money, W to withdraw
Type your action: D
How much money do you want to deposit: 5
15

ornate wren
#

@vale wasp aren't we moving from simple coders to true solution architects?

pearl terrace
dim kelp
pearl terrace
dim kelp
#
```What does this error mean?
raw bramble
#
accounts = {}
class Account:

    def __init__(self, name: str, cash: float = 0.0):
       self.name = name
       self.cash = cash
       accounts[self.name] = self

    def __repr__(self):
        return f'Account(name={self.name}, cash={self.cash})'
    def deposit(self, amount: float):
        self.cash += amount

    def withdraw(self, amount: float):
        self.cash -= amount

    def transfer(self, amount: float, account: Account):
        self.withdraw(amount)
        account.deposit(amount)


Account('John')
Account('David',15)

accounts['John'].deposit(100)
accounts['John'].transfer(40,accounts['David'])

print(accounts)

Is this code good or bad ;w;

swift sparrow
dim kelp
#
bank = {"Cash":10}

def action():
    print("Press D to deposit money, W to withdraw, C to check cash")
    action = input("Type your action: ")
    if action == "D":
        deposit(bank)
    elif action == "W":
        withdraw(bank)
    elif action == "C":
        check_cash(bank)

def deposit(bank):
    deposit_amount = int(input("How much money do you want to deposit: "))
    bank["Cash"] += deposit_amount
    print(f"Cash: {bank["Cash"]}")

def withdraw(bank):
    if withdraw_amount <= bank["Cash"]:
        withdraw_amount = int(input("How much money do you want to withdraw: "))
        bank["Cash"] -= withdraw_amount
        print(f"Remaining cash: {bank["Cash"]}")

def check_cash(bank):
    print(f"Total cash: {bank["Cash"]}")

loop = input("Exit? E to exit Y to keep the program running")
while loop != "E":
    action()
swift sparrow
dim kelp
#

WAIT

#

I GET IT I GET IT

pearl terrace
raw bramble
swift sparrow
#

and you should have some guards in your deposit/withdraw. Right now you can withdraw as much money as you like, regardless of what's in your account

dim kelp
#

yeah yeah i noticed

pearl terrace
swift sparrow
raw bramble
#
class Account:
    accounts = {}
    def __init__(self, name: str, cash: float = 0.0):
       self.name = name
       self.cash = cash
       Account.accounts[self.name] = self

Account.accounts['John'].deposit(100)
Account.accounts['John'].transfer(40,Account.accounts['David'])

print(Account.accounts)
raw bramble
swift sparrow
#

yeah, it just makes it a bit more clear and organized

raw bramble
swift sparrow
#

I think it's ok, but structurally you might want to have an AccountManager class, and that can be responsible for creating/storing/etc for Accounts

celest osprey
raw bramble
#

What would that class be?

just some class with functions like AccountManager.create_account("jimmy") ? and the accounts are stored as AccountManager.accounts

swift sparrow
#

yeah, but then that way the dictionary could be an instance attribute

finite rose
#

Every time I do a new thing in C I find a new way to crash. Who knew there were sooooo many things that can go wrong.

steady rain
finite rose
#

lol NOOOoooooOO this time it was a "bus error!'

half pewter
#

jfc scan a barcode and enter two verification numbers for aws...

#

and yet we have new data leak scandals every week

mossy sigil
finite rose
#

I'm very very smart. I know this cause ChatGPT is always telling me I am asking very smart questions!

mossy sigil
finite rose
#

πŸ™„

leaden solar
#

Guys...this might sound dumb, but how do I study effectively? I've heard of this technique where I study for 25 minutes and then take a 5 minute break...but it's like, every time I try to sit and concentrate, I can't stay focused. :/

pallid garden
ornate wren
#

uninstall tiktok

steady rain
pallid garden
#

if you are reading on an electronic device, download the document and turn on airplane mode

pallid garden
#

i dont do 25 minute blocks myself, i just study until i am hungry or tired, then i eat or sleep respectively, and then go back to studying

leaden solar
#

Watching CS50P on YouTube, and I got a smattering of books on my Kindle.

#

@steady rain

robust ledge
pallid garden
#

use the cs50p website to watch the lectures

rare tiger
#

works for me

#

might not work for you though

steady rain
#

People are giving answers that seem to assume you're being actively distracted by devices and such. Is that the problem, @leaden solar, or is it something internal?

leaden solar
#

I think it's something internal, tbh.

I've never had to study like this before. I breezed through high school with straight As without ever studying and now I'm 29 with no degree because of disability, trying to break into tech because I'm tired of living off of social security. :/ Hopefully that makes sense.

Computers are such a broad field, I know I won't understand it all...

wise imp
#

Preoct's advice seems like it could work for something internal as well

half pewter
#

picture your project in it's underwear

robust ledge
#

My advice is focused on two things: It's perfectly okay to feel like you can't focus. It's also something you can learn to do. It just takes effort. That's the hard part.

leaden solar
#

Thank you. @robust ledge

steady rain
visual juniper
#

unless you start at the very bottom like tech support and get a certification course or smth

leaden solar
#

Thank you, everyone.

I can't start a degree for another 3 years. My student loans were discharged last year and now I'm going through this monitoring period, so I'm just trying to self-study for now.

steady rain
leaden solar
#

Okay. So, like, read a Python book and practice programming out of that?

pallid garden
steady rain
leaden solar
#

Hm...okay. πŸ‘

ornate wren
#

being dedicated and competent can get you far

#

specially when people are so lazy nowdays

#

Build anything useful while others are doomscrolling

#

its never been this easy right?

visual juniper
steady rain
kind thicket
leaden solar
#

I know I'm basically gambling that the job market will magically get better in the next few years...

#

@steady rain

ornate wren
leaden solar
#

Good to hear.

kind thicket
wise imp
#

Luck is what happens when preparation meets opportunity - Seneca

steady rain
#

I have like four tshirts that say variations of "luck is what happens when you're Irish"

#

Unless you lived in Belfast during the troubles

leaden solar
#

The only thing I can think of actually making is a digital version of a card game I'm trying to make. But there's so much interesting computer stuff I wanna do...software, Web development, cybersecurity, system administration...

kind thicket
leaden solar
#

So far I know a bit of Python and Linux...but that's it, really.

finite rose
#

Learning to focus and study is a skill you can improve, like running can build endurance. It happens over time, with prolonged exercise. You have to practice stuying and focusing for it to get better. But it can absolutely improve.

leaden solar
#

nods Okay.

steady rain
leaden solar
#

I've heard of making GUIs with something called TKinter, is that a good idea? I've also heard of using PyGame...

half pewter
#

where are you at in your progress? fizzbuzz? tic tac toe?

steady rain
half pewter
#

those are both milestones worth working toward if you havent

leaden solar
#

I've done fizz buzz before. No tic tac toe.

I know what functions are, but constantly get stuck on OOP stuff...

steady rain
half pewter
#

OOP is sort of an abstract concept when you're writing toy projects, I wouldn't worry to much about it but ...

steady rain
leaden solar
#

Okay.

#

So, just try and understand classes. Got it.

wise imp
steady rain
leaden solar
#

I have Python Crash Course on my Kindle. I'll keep chugging along here.

grave tree
#

tkinter can be fairly clunky and is fairly limited in features compared to other GUI options

half pewter
#

I'd rather write a gui in turtle than tkinter no joke

wise imp
#

but turtle is tkinter

half pewter
#

tkinter minus the suck

rare tiger
steady rain
#

But you don't have to know that it's tkinter
It's encapsulated
Hey, that's part of OOP

#

Streamlit makes it crazy easy to do UIs

#

But you sort of have to know what it does behind the scenes

deep zenith
#

Hello

#

Good morning

ionic surge
#

how can i change the bar where file, edit, debug, etc is to something other than white?

ionic surge
#

oh sorry, in IDLE lol

#

i should've led with that

deep zenith
rare tiger
swift sparrow
#

pyside is life for UI

deep zenith
ionic surge
robust ledge
deep zenith
#

Use vs code lol then

rare tiger
#

I'm making my own gui framework for python currently, it's honestly been pretty fun if a little frustrating at times

deep zenith
#

U can apply themes too

leaden solar
#

@steady rain @robust ledge I'll pick up studying tomorrow, it's 1 AM here. :/ Thank you all for your advice.

deep zenith
#

In vs code

ionic surge
#

ah yea i might do vs code but i was reading some comments of people saying start with IDLE to learn a bit before switching

deep zenith
#

Can I contribute

robust ledge
leaden solar
#

@steady rain definitely, lol. XD

deep zenith
rare tiger
ionic surge
rare tiger
deep zenith
ionic surge
#

heard that, ty

wise imp
#

I'd say don't use IDLE ever

#

Thonny though

deep zenith
wise imp
#

nuh uh

deep zenith
#

It doesnt provide ai slop

half pewter
#

used idle long enough to know I hated it

ionic surge
#

lol

wise imp
#

as mentioned, there's Thonny

swift sparrow
#

but IDLE comes with python

small tinsel
#

is there any tool that can coonvert my python0.9 code to python3.13

ionic surge
#

didnt know of thonny, does look neat

swift sparrow
#

more hurdles is generally bad for beginners

ionic surge
#

i grabbed python crash course, that a good starting point?

deep zenith
half pewter
#

starting in np++ wasn't bad but autocomplete and standard plugins arn't going to inhibit anyones learning imo

small tinsel
wise imp
#

how?

deep zenith
#

I am at the point where I can just look for docs and code myself but I am so lazy

ionic surge
#

nothing...computercraft in minecraft maybe? lol

rare tiger
#

just rewrite the code if it isn't super complex

#

also why are you using python 0.9 😭

half pewter
#

what museum did you find that in?

deep zenith
ionic surge
#

last time i tried to learn coding was ages ago, but its always been interesting to me

deep zenith
small tinsel
#

i wrote it in my mid 50s

deep zenith
#

Is guido van russom ur friend

small tinsel
#

no i wrote the python0.9 code back then

deep zenith
#

Ohh

#

I thought u contributed to it

#

Man mid 50s is like 1955?

ionic surge
#

exactly

deep zenith
#

Damn

rare tiger
deep zenith
#

Even computer graphics came out commercially in 1960s

dry pike
ionic surge
deep zenith
dry pike
#

meaning, when they were 50-59 years old

deep zenith
#

I misunderstood that

ionic surge
#

xd

fiery yarrow
#

ergo, sometime in the 2050s most likely

deep zenith
#

Okie

swift sparrow
#

python was definitely not a thing in 1955

deep zenith
ionic surge
#

were they doin the punch cards in the 50s or am i decades off

deep zenith
#

Fortran and cobol

rare tiger
dry pike
deep zenith
dry pike
#

google says fortran 1957 the compiler was released

deep zenith
#

Dang 😫

fiery yarrow
#

yall are gullible

deep zenith
#

So we are not even completed a century and we got ai

dry pike
#

cobol 1960

deep zenith
#

From human manually programming chips by hand to let ai do everything

#

What a journey it was

swift sparrow
#

we're not at the point of ai doing everything

deep zenith
#

Cyberpunk 2077 is looking real

#

Idk what will happen to tech after 10 years

#

Tech grows exponentialy

unkempt shard
deep zenith
#

That's my law

unkempt shard
#

mb

deep zenith
#

Moore stoled it

swift sparrow
unkempt shard
#

Close enough

dry pike
deep zenith
#

But no ram and no gpus

pallid garden
#

guess what ram and gpus are made of

kind thicket
dry pike
#

mini CPUs

pallid garden
dry pike
#

the took the CPUs and used a shinkray on them, then put a bunch of them together

pearl terrace
dry pike
#

well, silicon is not metal

fiery yarrow
pearl terrace
#

rock ?

velvet hull
#

Ai one is more exponential

pallid garden
#

and more fake

final hollow
#

I was reading your guys' conversation about Moore's Law and thinking DeMorgan's Law, and I'm like "what negations are you talking about for AI"

pallid garden
jagged belfry
#

cyncial: e = mc^2 + ai

pallid garden
#

what

final hollow
#

P = ΡσT⁴ is the Stefan-Boltzmann law

kind thicket
dry pike
#

wow 4, what is that a cube

final hollow
#

No it's s 67-dimensional sphere

kind thicket
#

(that's the ref)

fiery yarrow
# kind thicket

it disappoints me that is is not as much as a self-burn as everybody says it is, because e=mc^2 is not the full equation πŸ˜”

mossy sigil
#

im liking development

dry pike
#

development of what?

mossy sigil
#

py

fiery yarrow
#

tbf, for at object at rest, the other half is 0

jagged belfry
#

It's a triangle equation too, which is more fascinating but also makes sense

final hollow
#

The triangular inequality for vectors?

dry pike
#

so that's why video games are made of triangles

jagged belfry
#

No, e^2 = (pc)^2 + (mc^2)^2

#

c^2 = a^2 + b^2

final hollow
#

||x + y|| <= ||x|| + ||y||

dry pike
#

what does || mean

bronze dragon
#

absolute value ig

dry pike
#

oh I get it

#

||x + y|| <= ||x|| + ||y||

final hollow
#

Norm since x and y are vectors, but I've seen it written as just single bars too

dry pike
swift sparrow
dry pike
swift sparrow
#

oh lol

fiery yarrow
#

||a|| is the magnitide of vector a

dry pike
#

how many points are required to uniquely define a sphere including position?

jagged belfry
#

2

#

...this has come up before

dry pike
#

sorry I forgot some parts of that sentence

swift sparrow
#

wouldn't it be 4?

fiery yarrow
#

circle is 3

jagged belfry
#

IIRC I annoyed people

swift sparrow
#

radius, x, y, z

dry pike
#

I meant "on the perimeter" or whatever perimeter is for 3d shapes

jagged belfry
#

4 numbers, two points: one in the cneter, one on the perimiter

bronze dragon
dry pike
#

for circles, it's 3

jagged belfry
#

and if it's on the surface, it's also 3.

#

Hm

#

no

#

4

#

And they can't be in a circle themselves

dry pike
#

how many points are required in 3d space to uniquely define a sphere such that the points lie on the surface of the sphere?

jagged belfry
#

3 points form a triangle, but there are two possible spheres for that triangle, so you need 4 points to be fully discriminant

dry pike
#

apparently the points have to be non-coplanar

fiery yarrow
#

3 non-colinear points define a circle.
i vote that those three non-colinear also define a sphere.

jagged belfry
#

I wish I had a decent 3-d drawing software

rapid parcel
#

9 points?

dry pike
rapid parcel
#

three in each plane. that makes 9

jagged belfry
dry pike
#

two points define an infinite number of circles @jagged belfry (if on the perimeter of course, as we are talking about)

bronze dragon
fiery yarrow
#

think i meant colinear for 2 and 3 d

jagged belfry
rapid parcel
#

les gooo

jagged belfry
#

now make the sphere bigger.. the triangle still fits on the surface, just closer to the pole

rapid parcel
#

dang

fiery yarrow
#

and i'm upgrading to 4. one point must be non-co{line/plane/etc}er for {2/3/etc} space, which, for 3d, requires at least 4 points

dry pike
#

would be a nice animation if it had some acceleration and deceleration

fiery yarrow
#

new vote: an n-sphere is defined by n+2 points that do not collectively share an (n+1)-plane.
apparently a sphere is a 2-sphere, not a 3-sphere. Β―_(ツ)_/Β―

rapid parcel
#

naur

jagged belfry
#

Same principle applies to circles

rapid parcel
#

so y'all are mathematicians too?

dry pike
#

no

jagged belfry
#

You can actaully solve this analytically

rapid parcel
#

hmm. and we're deciding the minimum number of coplanar points required to create a sphere?

jagged belfry
#

a sphere is defined by r^2 = x^2 + y^2 + z^2

#

Four variables, four unknowns

rapid parcel
#

true..

fiery yarrow
#

even an infinite number of coplanar points cannot unique define a sphere

rapid parcel
#

so one x and one y, three equations. three points. sounds about right. except they won't be coplanar. do they have to be coplanar?

jagged belfry
#

coplanar points are degenerate matrices :3

rapid parcel
#

ok im out this is mathing too hard

jagged belfry
rapid parcel
#

true. so that does make it coplanar then. right?

jagged belfry
#

yes

bright mauve
wise yarrow
#

why are we having this conversation again

half pewter
#

because we stopped having this conversation before?

wise yarrow
#

last time i think we concluded that the question is not specific enough

#

i.e. what does it mean for points to uniquely define a sphere

nimble isle
#

slightly off-topic, I know, but is there an active discord server where I can ask about game design?

bright mauve
#

judging by bast's images above, "uniquely up to rotation" because translation is being considered

half pewter
#

that's my memory as well, it dependsβ„’

jagged belfry
#

The question this time was more specific

#

not just "points to define a sphere" but points on the surface

kind thicket
#

and it must use points

fiery yarrow
#

cramer's theorem moment

wise yarrow
#

and then i will leave the convo because i don't want to think about geometry on a sunday afternoon

nimble isle
#

it's sunday morning

#

and I'd much rather think about geometry than do my stupid dumb 4-page english essay

bright mauve
#

do your homework

fiery yarrow
#

"afternoon" is kinda pushing it tbh

bright mauve
#

don't waste your money

nimble isle
#

english was forced upon me, I had no choice in the matter.

still depot
#

how i can back run in python?

bright mauve
#

this is exactly the reason you to go school. that they force you to study things you realistically wouldn't on your own

#

everyone says self-teaching is great, but it's only great if you can also power through the stuff you dislike

#

school forces it down your throat lol

kind thicket
wise yarrow
fiery yarrow
#

heyyo stickie
you want an easy math problem

bright mauve
#
"""
once upon a time...
"""
wise yarrow
#

it better be easy this is like my 5th nerdsnipe this week

nimble isle
wise yarrow
#

is this australia?

kind thicket
fiery yarrow
bright mauve
#

there's always gonna be stuff you have to do that you don't like

nimble isle
kind thicket
#

Plus there is a say that languages will limit your thoughts

nimble isle
#

also like explain to me exactly how knowing a million quotes from poems and Shakespeare will help a career in... say... software dev

jagged belfry
#

It's not about knowing them it's about understanding them

nimble isle
bright mauve
jagged belfry
#

Being able to take apart language is incredibly helpful in development

wise yarrow
kind thicket
jagged belfry
#

Naming things is one of the hardest problems in programming

nimble isle
bright mauve
#

so that you can also read well?

swift sparrow
#

to become a well rounded human

nimble isle
#

also this should probably be moved to off-topic

visual juniper
wise yarrow
dry pike
#

the futurer: the time that goes after the time that will come

fiery yarrow
kind thicket
weak jasper
#
def __str__(self): 
        return f"Planet: {self.name} | Type: {self.planet_type} | Star: {self.star}"

print(planet_1.__str__())```
why we do ``print(planet_1)`` to call the str method whereas in the other normal methods we use the dot notation to call those? (there was more in this code, i only kept the part which i had doubt in)
#

why we cant call it like I have written above

swift sparrow
#

you can

#

but dunder methods are not really meant to be called directly

swift sparrow
#

!e

class Foo:

    def __str__(self):
        return 'this is a foo instance'


f = Foo()
print(f.__str__())
edgy krakenBOT
swift sparrow
#

print automatically converts whatever object it is printing to str

#

and __str__ is responsible for the string representation of your instance

weak jasper
#

ohh

#

what if it was __int__

swift sparrow
#

then that's what happens if you try and convert your instance to an int

#

so if you do int(planet_1), what would you expect the result to be?

weak jasper
#

TypeError

swift sparrow
#

yes, unless you define __int__

weak jasper
#

ohh okk

swift sparrow
#

!e

class Foo:

    def __int__(self):
        return 123


f = Foo()
print(int(f))
edgy krakenBOT
weak jasper
#

ahh okk alright

keen parcel
#

hey everyone how's it going ?

white knot
#

its fine..

#

i am just scanning past my DSA and Algorithm Analysis coursework..

#

i really wanted to study these stuff seriously.. but i think i don't have much time for that

#

i don't like properly understand a recursive function and i already did like some questions on recurrence relations from my syllabus..

#

just studying the syllabus now...

novel shell
white knot
#

hm i dont understand much but yeah, you mean making your own stack.. ?

kind thicket
novel shell
#

although obviously if your recursive solution would work with tail-call elimination you don't need a collections.deque

fickle ivy
#

Hello everyone

white knot
novel shell
kind thicket
kind thicket
white knot
novel shell
#

trees and recursion go hand in hand

kind thicket
white knot
#

what is like a AVL tree self balancing tree. i see them next

#

in algorithm analysis

kind thicket
white knot
#

oh ok

kind thicket
# white knot oh ok

a frequent pattern is to split the space in two (left vs right child). And imagine you keep adding data to it, you want that order to be maintained while keeping the tree balanced

abstract vigil
#

I have a question
In C text characters are changed to ASCII (numbers)
So characters have a corresponding number in ASCII

I assume numbers like 10 have a different ASCII value

There is an infinite set of positive integers. Does thag mean there exists what I will call a "more" infinite set of ASCII Characters to cover up those numbers

white knot
#

in "10"

#

not integer 10

#

integer is converted to binary

abstract vigil
white knot
#

ascii is for character strings

abstract vigil
granite wyvern
# abstract vigil I have a question In C text characters are changed to ASCII (numbers) So chara...

A C string is an array of char, with a NUL (zero) byte indicating the end of the string, and each char indicating a character. Chars are bytes.
The C string "abc" occupies 4 bytes: 97, 98, 99, 0.

There's only 255 nonzero values, which constrains a C string to some 8 bit character set.

There's a wchar_t type for a wider range; may have misspelled this.

Most modern systems use Unicode strings for text, which aims to cover every human language.

Some, like Python, use Unicode code points. Some encode code points directly, often as UTF8, like Go.

dire shale
#

I wanted to make the most performant one possible. After a great deal of consideration, I learned that you really do get better performance from a branching decoder with normal human language, thanks to branch prediction

abstract vigil
abstract vigil
dire shale
#

What "your text editor" sees and displays isn't the same as what the python interpreter see's and displays

#

As well, it depends on the encoding. A text file is just a sequence of bytes. How you interpret those bytes is a matter of convention, and choice. Nearly every modern tool is going to be using Unicode, though

white knot
#

hm idk much about how it works but.. a keyboard is an IO device. so there would be some drivers. and your text editor would probably communicate to it through OS. i assume there would be some buffer or something.

#

to store these

#

so it might be converted immediately i think

abstract vigil
#

I see. The deeper the rabbit hole get,the more fun I have

white knot
#

or if its not then, the display device won't be able to show the change obviously.

proud seal
#

Hi, can anyone help me out with how I can use python programming in civil engineering?

white knot
dire shale
proud seal
#

XD

abstract vigil
dire shale
#

More specifically: you don't learn python to engage in an industry. You learn the industry, and you learn to use Python (among many, many other tools) along the way

white knot
#

like engineering graphics

proud seal
#

Kinda. Like I want to use it to figure out how long will my construction lasts

white knot
#

hm i think u should share more about the problem you are trying to solve

proud seal
#

Like I created a building with some materials but I want to know that how long will gonna hold that building up in a good shape with that material until the materials used ran lifetime

white knot
#

maybe you could make some algorithm or something. but you need to be like sure about all the parameters and how does it affect the building

proud seal
#

I see

simple willow
#

Would it be possible to make a past paper tracker in Python - like when it question per question scores for each question where a user enters a score and it gives them feedback for their score and what topics to revise?

pallid garden
#

a long long time ago we made an app for a competition and that was what i did (in js, but same idea)

#

-# we won btw

simple willow
#

I am thinking of using a web front end, a python backend (maybe Google and Microsoft login in) and a database in SQL Server Studio

grim moss
#

So I only just got the news that apparently programmers are effectively losing their jobs en-masse as AI takes over. And that the ones who survive are basically just babysitting the LLM while it does most of the work. Anyone able to ring in with what's actually going on?

simple willow
#

I don't know if I have the skills to do it though

pallid garden
inland karma
#

good morning

simple willow
grim moss
# half pewter AI code is trash

I mean I'd imagine that it is. I don't think an AI would care to comment their code, which means that trying to debug it and figure out what's going on would be an absolute nightmare.

pallid garden
half pewter
simple willow
grim moss
#

Plus the idea that all you do is sign off on whatever slop the AI puts out, and if something goes wrong it comes down on YOUR head?

pallid garden
#

and if something goes right AI gets the credit!

thorn hedge
pallid garden
#

amazing!

simple willow
grim moss
pallid garden
#

clearly the model wrote the code

#

totally not stolen from human-written repos

dry pike
#

Send help I'm stuck awake

grim moss
pallid garden
dry pike
#

what OS is that

half pewter
grim moss
#

From the sounds of things its a train full of TNT on a collision course with a dumpster fire

dry pike
#

my brain doesn't run Linux

pallid garden
#

everything runs linux

dry pike
#

my brain isn't currently running Linux

grim moss
half pewter
#

you could just punch yourself in the face really hard

#

works on computers too

dry pike
#

I consumed some sleepy things and they didn't do the sleepy

#

so now's it's 2:30 in the morning

pallid garden
half pewter
#

no one can see the future

pallid garden
#

someone actually showed up to this discord with an interpreter written by LLM

#

and i kid you not, the interpreter uses regex to parse each line of code

half pewter
#

that's fun

grim moss
#

I'm just spooked that if I go through the trouble to learn python, I'm signing up to just babysit an artificial brain.

#

Because that sounds like a soulsucking hell.

pallid garden
#

well you are definitely signing up for a soulsucking hell of people with absolutely no technical knowledge trying to tell you how to do your job when you know programming and they don't

teal hare
#

whats the best way to learn python and more precisly (backend dev)

grim moss
#

I want to know I'm still pouring my soul into my creations, not signing off or checking on something bound to explode.

inland karma
#

if you want to have no ai bugs, dont use AI

pallid garden
#

please do not pour your soul into your creations, you can pour your blood, sweat and tears, but not your soul please, you will end up as an eternal ghoul forever doomed to roam the earth without peace

grim moss
thorn hedge
surreal knot
#

makes writing bugs faster too

inland karma
pallid garden
#

cue the shencomix "1000 calculations per second AND THEY ARE ALL WRONG" meme

grim moss
#

Spooks someone prepping for a career that said career is taking a short drive off a cliff.

inland karma
grim moss
#

I feel like an absolute baboon.

#

Worrying for an hour only to be reminded "When has this ever been right?

inland karma
#

if the world where only filled with expertice, then you would loose because you do not have experience

#

you need people with experience

pallid garden
#

Create a store in a production line with

> add store --production-line-name Cookies
```bringing the topic back to programming, for people who use clis predominantly, do you think this command is too long?
surreal knot
pallid garden
#

like -line

nimble isle
#

are tuples any faster than lists if I only need an immutable array?

pallid garden
#

probably

pallid garden
inland karma
nimble isle
inland karma
half pewter
#

notice how they're not saying that AI will replace <insert any repetitive job> in other industries... the headlines are just clickbait really, if the product were what is promised SWE jobs would still be necessary and AI would be taking care of all things administrative... people associate AI with SWE though so that's their marketing pitch

nimble isle
#

is map(int,(input(),input())) any faster than map(int,[input(),input()])
So no then.

inland karma
#

indexing in both cases are O(1)

half pewter
#

the conversation moved on without me πŸ™

pallid garden
nimble isle
#

might as well use a tuple if I'm not mutating it though

pallid garden
#

i think you're right

inland karma
pallid garden
#

in a cli is list production_line better or list production-line better?

#

in your opinion

#

not argument btw, subcommand

inland karma
#

⁨-⁩ is easier to type

pallid garden
#

ok

thorn hedge
surreal knot
#

that you've noticed :^

fervent matrix
#

I have finally found the usefulness of writing tests, I refactored a bunch of code and the tests passed, no need for too much manual testing

#

I should have done this so much earlier...

fossil steeple
#
class pre_chosen_args:
    def __init__(self, func) -> None:
        print("init")
        self.func = func
        self.args = None
        self.kwargs = None

    def __call__(self, *args, **kwargs):
        if self.args == None and self.kwargs == None:
            self.args = args
            self.kwargs = kwargs
            return self

        self.kwargs.update(kwargs) # pyright: ignore[reportCallIssue, reportArgumentType]
        print(self.kwargs)
        self.func(*(list(self.args) + list(args)), **self.kwargs) # pyright: ignore[reportArgumentType]

@pre_chosen_args
def heal(amount: int, user:str):
    print(f"healed {user} for {amount} hp")
    return "working"

I've got like this pre chosen arguments for a function thing

cosmic scaffold
#

Can anyone tell me how can I download pandas in phone?

strange girder
#

generally speaking the way to get an almost-proper python interpreter on phone is Termux

#

no idea if pandas will work. prooobably yes?

cosmic scaffold
fossil steeple
#

but when i do this i get an error

#

File "c:\tmp\rox\storage\python_programs\xorp\main.py", line 25, in Potions
GREATER_POTION_OF_HEALING = Potion("Greater Potion of Healing", "Heals for 50 hp", used=potions_effects.heal(amount = 50))
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "c:\tmp\rox\storage\python_programs\xorp\potions_effects.py", line 16, in call
self.func(*(list(self.args) + list(args)), **self.kwargs) # pyright: ignore[reportArgumentType]
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: heal() missing 1 required positional argument: 'user'

fervent matrix
hoary scaffold
#

My heart is filled only with true love for you; only because I love you do I need to think about anything else...

#

@verbal wedge

cerulean ravine
vapid mural
#

Do you think that i am impacting readability by using walrus and intersection validation in the expression?

class KeyboardInputSystem(esper.Processor):
    def process(self) -> None:
        for entity, rki in esper.get_component(ReceiveKeyboardInput):
            if pressed := keyboard.get_pressed() & rki.keys:
                esper.add_component(entity, KeyPressed(pressed))

            if released := keyboard.get_released() & rki.keys:
                esper.add_component(entity, KeyReleased(released))
#

I personally think its not that hard to read it but idk

pallid garden
#

it's fine, for me

vapid mural
#

i know i could put the interseciton in the variables and than do the check

slate moon
visual juniper
#

it is the lack of spacing everywhere except between those two ifs is what makes me uneasy

vapid mural
#

Im trying to follow the pep rules the ones that i learned, so please, if you know any that i missed, let me know, im open to learn new things

wise yarrow
vast burrow
#

how can I code MCMC?

slate moon
jade robin
#

"too bored of parentheses" is definitely a reason of all time

wise yarrow
#

well not too bored

vast burrow
wise yarrow
#

if you have 4 layers of parens it's nice to turn that into like 2 layers of parens, a square bracket, and then a paren

pallid garden
slate moon
pallid garden
#

lispurgatory

vast burrow
slate moon
vast burrow
#

@slate moon okay

slate moon
#

assuming that bell curve = normal distribution

slate moon
#

yeah then box muller is usually the way to go

#

unless the aim is practicing MCMC

fossil steeple
cerulean ravine
fossil steeple
#
File "c:\tmp\rox\storage\python_programs\xorp\main.py", line 25, in Potions
    GREATER_POTION_OF_HEALING = Potion("Greater Potion of Healing", "Heals for 50 hp", used=potions_effects.heal(amount = 50))
                                                                                            ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "c:\tmp\rox\storage\python_programs\xorp\potions_effects.py", line 16, in __call__
    self.func(*(list(self.args) + list(args)), **self.kwargs) # pyright: ignore[reportArgumentType]
#

see what i think is happening when i set it up the first time with lesser potion of healing, the prechosen args are set, so then i think i'm tryna call it the second time

fossil steeple
cerulean ravine
fossil steeple
#

sort of yeah

#

basically i want to:

#
LESSER_POTION_OF_HEALING = Potion("Lesser Potion of Healing", "Heals for 10 hp", used=...)
    GREATER_POTION_OF_HEALING = Potion("Greater Potion of Healing", "Heals for 50 hp", used=potions_effects.heal(amount = 50))

make it so that lesser heals 10 and greater heals 50

tawdry mulch
#

hi chat

#

im kinda a new learner so i was wondering if anyone wanna have a look at smth i made for no reason?

#

its 50 line i dont think i can put it here tho

#

import pickle
import time
file = ("Storage.txt")
while True:
  op = input("""What do you want to do?
  1. Create new note
  2. Clear all note
  3. Show all notes
  4. Exit\n""")
  if op == ("1"):
    try:
        fileobj = open(file, 'rb')
        ls = pickle.load(fileobj)
        fileobj.close
    except:
        ls = []
    note = input("Add a note to store: ")
    ls.append(note)
    fileobj = open(file, 'wb')
    pickle.dump(ls, fileobj)
    fileobj.close
    print("Your file has been saved succesfully.")
  elif op == ("2"):
    ls = []
    fileobj = open(file, 'wb')
    pickle.dump(ls, fileobj)
    fileobj.close
    print("All notes have been deleted")
  elif op == ("3"):
    try:
      fileobj = open(file, 'rb')
      ls = pickle.load(fileobj)
      fileobj.close
      if len(ls) == 0:
        print("You do not have any notes stored yet")
      else:
        print("\n", ls)
    except:
      print("You do not have any notes saved yet.")
  elif op == ("4"):
    print("Commencing shut down...")
    time.sleep(1)
    print("Saving files...")
    time.sleep(0.5)
    print("Files saved.")
    break
  else:
    print("Invalid operation.")
# I added the countdown just for fun.
# By Sahil```
#

-# Honestly I don't think I can still make it without occasionally checking out yt and stuff

autumn forge
# tawdry mulch ```py import pickle import time file = ("Storage.txt") while True: op = input...

looks good, but when closing a file, you need to call the close method (with parentheses). fileobj.close on its own doesn't actually do anything. You could also consider using open with the with keyword so the closing happens automatically (there are examples of this here: https://docs.python.org/3.14/tutorial/inputoutput.html#tut-files)

You also don't need the parentheses around string literals (if op == ('1'):); if op == '1': also works

round storm
#

hi there

autumn forge
round storm
#

wanted to ask guys what should i learn first in python i wanna learn code

visual phoenix
#

I'm beginerr and starting python can any expert give any suggestion please which should I avoid or which should I do .?

bold compass
#

WAYY easier than Python

#

or how about Malbolge REALLY easy too

fervent matrix
# visual phoenix I'm beginerr and starting python can any expert give any suggestion please which...
bold compass
#

dont take his advice instead learn Machine code or Malbolge

pallid garden
fervent matrix
bold compass
round storm
#

bruh im lost

#

pls be serious

bold compass
#

Learn malbolge it is the basic requirements for coding like !print is easy there or if you wanna be a bit more complex learn Machine code @round storm

bold compass
inland karma
#

whats going on here

round storm
bold compass
round storm
swift sparrow
#

!mute 1349011248989208709 1d trolling messages are not appreciated here

edgy krakenBOT
#

:incoming_envelope: :ok_hand: applied timeout to @bold compass until <t:1770641889:f> (1 day).

round storm
#

who i should listen to

wind plinth
#

prob not the guy who got muted

pallid garden
inland karma
round storm
#

tysm all ❀️‍πŸ”₯

valid robin
#

Guys can you tell me what type of project should I build using python for data science??

mossy sigil
runic flower
#

Also, good morning everyone!

slow rivet
#

Morning!

frail scaffold
#

How do l read the book automate the boring stuff with python?

frail scaffold
runic flower
frail scaffold
#

Is it a nice book and do you guys recommend it?

runic flower
runic flower
#

it's generally considered to be very good.

pastel sluice
#

I have read it, although I came to it after I already knew Python. It's recommended regularly for good reason

runic flower
frail scaffold
harsh swallow
#

I like how the book tried to make you actually try and play with the code... But I've met enough newbies here who still don't do that - they skim the text and jump straight into exercises and get confused what they need to do...

#

But i haven't followed the book myself, just read some parts out of curiosity how it explains stuff

timid ember
#

Is there any way to speed up small matrix (3x3) and vectors ops (cross and dots)? I am performing only a 1-2 dozen at 2000hz, and i think numpy isnt great at speeding up small arrays

#

reason is i am performing mΓΆller-trumbore/havel-herout ray triangle intersection, and i need to make this function fast

runic flower
slow rivet
timid ember
#

Im using cython now

half pewter
#

tap into cuda for your tic tac toe app lol

pallid garden
half pewter
#

could be a portfolio project

runic flower
timid ember
#

I would be fine with that but i would like to write the code myself because i am not using this for raycasting scenes or graphics

pastel sluice
# timid ember Im using cython now

a note about using Cython:
the fewer times you call out to Cython from Python, the better the performance is going to be. if you are calling into Cython 100 times for the sake of going over 100 different objects, it's best to provide all the objects to Cython in a container, call Cython once, and have the iteration over the objects done on the Cython side

timid ember
#

Im planning on doing everything computr heavy in pure cython, no calls out.

half pewter
#

the reason people use gpus for vectorized computations has nothing to do with graphics but it's a bit of a moot point if you're not using numpy

soft coral
#

Does cython have more overhead than regular Python functions?

#

Its compiled beforehand no?

pastel sluice
#

calls between Cython functions, if they are written as C functions, will happen at C speed

runic flower
#

googling is getting me a lot of ai written answer that say use python for MΓΆller–Trumbore and then write a c module for the Havel–Herout. Which seems to be about expected. =/

soft coral
#

Ah alright, good to know

severe sage
#

This is absolutely a weird question, but is there any particular reason for clearing a widget to just nuke some object that has almost nothing to do with it before that object even exists? This is maddening and anywhere I put the clear either does nothing at all or self-destructs because it randomly destroys part of a path.

soft coral
#

Was planning on reading a book about cython

#

Been using it for some efficient data loading code for a ML model

timid ember
pastel sluice
# soft coral Was planning on reading a book about cython

there's only a couple of them out there, and I think they haven't been revised recently - I don't think they talk about the "pure Python" syntax that is now the recommended way to use Cython (unless you're calling extern functions)

soft coral
#

Hmm

timid ember
#

If you dont use the gil and dont call capi then it just a c func

soft coral
#

I also saw jinja like syntax, where you have .pyx.tp which seemed kinda scuffed lol

#

Sklearn uses it

timid ember
#

i shouldve written my other projects in C and just used cython to port them. Instead i did a massive extern block.

runic flower
timid ember
#

Numba can unroll matrix ops into scalars?

#

i mightve misread that from somwhere

#

But that would be great instead of manually unrolling my code into 27 scalars

runic flower
severe sage
# runic flower What's the context.

My bad. Trying to make a color palette editor for a game, and I need to clear the palette menu when a new character or skin is selected to refill it with only the ones belonging to what was selected. But somehow, clearing that seemingly also pre-emptively destroys the palette that was just loaded and the program dies because it needs that to assemble a path to a JSON to pull colors from.

soft coral
#

Seems all cython books are old af indeed :/

runic flower
frail scaffold
#

OOh so there is one with actuall projects because this is the most importtant thing

silver plover
frail scaffold
#

Guys how do you people find github repos with nice projects

silver plover
pallid garden
#

github repos with nice projects?

soft coral
#

Found a book that covers it: Fast Python: Write Efficient Code with Cython, Concurrency, and More, from 2023

pallid garden
#

each github repo tends to be one project

soft coral
#

Id rather read a book and then use it in practice.

severe sage
frail scaffold
soft coral
#

Hmm, ill see if I can download to my ereader :p

pallid garden
white knot
frail scaffold
white knot
#

Use it or contribute to it?

#

Or take inspiration to build your thing

pallid garden
frail scaffold
#

wdym

pallid garden
#

you build something when you take the source code and compile it

gleaming marten
#

I dont think thats what they mean

pallid garden
#

the word you were looking for was probably develop

#

or "contribute to"

#

(not a word, i know)

kind bolt
#

Im starting to learn python does anyone know a good place to learn it?

white knot
#

!res

edgy krakenBOT
#
Resources

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

turbid valley
#

guys i have question

#

ive been making the discord bot but i keep running into a problem with the shop thing

#

i am trying to merge gta heists like !cayo perico and other everything worked untill i needed to set !buy stuff command

#

cause i needed to make different categories but still !buy command only works with 1 category

#

ill send the code,also i havent worked on it for almost a year so yeah

bold light
#

suree

fossil steeple
#

functools.partial is very useful

white knot
#

What's the use

turbid valley
#

class Shop(commands.Cog):
def init(self, bot):
self.bot = bot

# Prices for roles
item_prices = {
    "master grinder": 100000000,  # 100 million
    "supreme grinder": 70000000,  # 70 million
    "major grinder": 50000000    # 50 million
}

# Role IDs mapped to roles
role_ids = {
    "master grinder": 1333016781782253672,
    "supreme grinder": 1333016913202249749,
    "major grinder": 1333016979950538783
}
edgy krakenBOT
#

Hey @turbid valley!

Please edit your message to use a code block

```py
print('Hello, world!')
```

This will result in the following:

print('Hello, world!')```
turbid valley
#

its one category for the roles

fossil steeple
# white knot What's the use

i've got a game and there's different types of healing potions so i can make one that heals 50 and one that heals 10

fossil steeple
turbid valley
#

the other is for cars,utilites like apartments (which are required for heists) and other stuff

white knot
#

!d functools.partial

edgy krakenBOT
#

functools.partial(func, /, *args, **keywords)```
Return a new [partial object](https://docs.python.org/3/library/functools.html#partial-objects) which when called will behave like *func* called with the positional arguments *args* and keyword arguments *keywords*. If more arguments are supplied to the call, they are appended to *args*. If additional keyword arguments are supplied, they extend and override *keywords*. Roughly equivalent to...
pallid garden
turbid valley
#

and !buy command

#

can i send an image?

fossil steeple
pallid garden
#

you can paste images in there

fossil steeple
turbid valley
#

how do i make it like that

fossil steeple
#

so put three of these at the start and end of your code: `

turbid valley
#

can i dm you?

fossil steeple
#

no

frail scaffold
#

!res

edgy krakenBOT
#
Resources

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

frosty plinth
#

bro what java even useful for

white knot
#

And separate calls

white knot
grand bough
#

Can someone help, basically I know like a good amount of python but I dnt know what project is gonna be best for me and it is overwhelming

frosty plinth
#

so like websites? what ab javascript tho and should i just learn c++ since it has way more uses especially for software

edgy krakenBOT
#
Kindling Projects

The Kindling projects page contains a list of projects and ideas programmers can tackle to build their skills and knowledge.

grand bough
#

Omg ty

frosty plinth
#

honestly i dont rly wanna do web dev unless im using ai to print out the css and html for me

#

i prefer the actual like coding part thats not for the looks

#

i already know python

pallid garden
#

i wonder why people are so afraid of frontend

white knot
pallid garden
white knot
#

Its so fun....😭

hidden kestrel
pallid garden
#

i think this might be a curse-of-knowledge thing for me

turbid valley
#

ive uploaded

hidden kestrel
#

you cannot eat money ohno

frosty plinth
gilded bane
#

Hello, people! I'm @gilded bane, an amateur Python programmer, and I'm new to the server. It'd be highly appreciated if somebody could help me explore the server.

white knot
#

I started to use tailwind and i think it saves me some time but.. yk i spend hours trying to reiterate different styles and debugging in css

frosty hedge
hidden kestrel
fossil steeple
#

!paste

edgy krakenBOT
#
Pasting large amounts of code

So that everyone can easily read your code, you can paste it in this website:
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.

runic flower
fossil steeple
turbid valley
#

also does anyone have suggestion ,im gonna finish the discord bot and ive been doing it from scratch,

white knot
#

I am thinking of converting my old mobile phone into a server. But idk how hard will it be...

frosty plinth
pallid garden
#

i find it funny that hosting a site can be done for free, but domains, something which does not require any cost at all, costs money

frosty plinth
#

what if i want my own domain

turbid valley
runic flower
turbid valley
#

also what kind of server

runic flower
white knot
runic flower
white knot
wind plinth
white knot
#

Ah

runic flower
white knot
runic flower
pallid garden
white knot
#

Yah that might be an issue

pallid garden
#

the infrastructure cost is covered by the dns

#

the domain name in of itself doesnt incur any costs

nimble isle
#

you pay for https as well right?

#

for the certificate

white knot
#

No

#

We can setup ssl

#

on our server

deep zenith
#

π™·πšŽπš•πš•πš˜ πš™πšŽπšŽπš™πšœ

deep zenith
nimble isle
deep zenith
scenic talon
#

guys

scenic talon
#

where should one start to learn python in 2026

deep zenith
runic flower
edgy krakenBOT
#
Resources

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

deep zenith
scenic talon
deep zenith
#

π™Ώπš’πšπš‘πš˜πš— πš‹πš’ πšœπšžπš–πš’πšπšŠ πšŠπš›πš˜πš›πšŠ

deep zenith
#

𝙸 πšŠπš– πš™πš›πš˜πšπš›πšŠπš–πš–πšŽπš›

nimble isle
#

are you an AI?

deep zenith
#

π™½πš˜

#

𝙸 πšŠπš– πš—πš˜πš πšŠπš’ πšŠπš—πš πšπš‘πš’πšœ πš’πšœπš—πš 𝚊 πšπšžπš›πš’πš—πš 𝚝𝚎𝚜𝚝

fossil steeple
warm girder
#

mono space font

deep zenith
warm girder
#

ones u might see in your terminal

deep zenith
nimble isle
nimble isle
deep zenith
#

𝙸 πšŠπš– πš—πš˜πš πšŠπš’

#

π™»πš˜πš•

nimble isle
deep zenith
#

πš‡π™³

nimble isle
warm girder
harsh swallow
deep zenith
#

C˟˚o˟˚o˟˚l˟˚

harsh swallow
warm girder
#

readable it just goes in a codeblock

nimble isle
harsh swallow
deep zenith
#

π™»πš˜πš•

stable wolf
#

hi everyon

harsh swallow
deep zenith
#

𝚈𝚘𝚞 𝚐𝚞𝚒𝚜 πšŒπšŠπš—πš πšπš’πš™πšŽ πš•πš’πš”πšŽ πšπš‘πš’πšœ

runic flower
#

𝒲𝑒 π“ˆπ’½π‘œπ“Šπ“π’Ή π“…π“‡π‘œπ’·π’Άπ’·π“π“Ž 𝒽𝒢𝓋𝑒 𝒢 π“‡π“Šπ“π‘’ π’Άπ‘”π’Άπ’Ύπ“ƒπ“ˆπ“‰ 𝒢𝓁𝓉𝑒𝓇𝓃𝒢𝓉𝑒 π’»π‘œπ“ƒπ“‰π“ˆ.

pallid garden
#

let's stop spamming, especially in the monospace characters

deep zenith