#python-discussion

1 messages · Page 150 of 1

cyan wolf
#

idk if that would be enough

eternal gyro
#

When people make AI they function that they can't Kill Human always. But there's an AI who murdered the human for the first time. It's due to Claude. Humans are making something that's smarter and faster then us humans. So the story is a robot is designed to check company mails and he found mail that a company employ name Mick going to off him(robot). As it's design for the function checking mails. So robot knows that if he got off he can't able to check mails. That's why he murdered Mick.

#

It's real

silver plover
#

Dad mode; take your education seriously, don't use GPT without at least trying to do something first

alpine cipher
#

it's like i am new and learning python but now want a project beginner friendly so i can earn because this is the task our uni professor give us to so 😀 f you guys can help me find a way for that

arctic folio
edgy krakenBOT
#
Kindling Projects

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

brazen canopy
#

I'm thinking of creating a virtual machine with Linux. I currently use Windows 11 and I like it, but I'd like to try Linux. Is it worth it? I heard some people saying that it's better for developing, but I feel that it might be the same as Windows for simple python project or others

visual juniper
exotic solstice
silver plover
eternal gyro
#

If we design robot for specific task if anything comes in way of robot and the task robot can do anything

charred tusk
eternal gyro
silver plover
visual juniper
#

better yet , just make unhashing the hash as the target of AI

charred tusk
visual juniper
exotic solstice
eternal gyro
#

Hashing*

eternal gyro
#

That's not

cyan wolf
exotic solstice
cyan wolf
#

thanks

brazen canopy
silver plover
eternal gyro
#

How long it gonna take to learn python medium though?

cyan wolf
#

okk need 4 papers

silver plover
silver plover
eternal gyro
#

Java take me like 1 year but the thing is I got a motivation and reason why should I learn java

silver plover
eternal gyro
#

How long ago you started?

silver plover
#

Some stuff will be easy, some stuff hard

silver plover
eternal gyro
#

Oh sir age?

arctic folio
silver plover
eternal gyro
#

?

silver plover
#

!compban 332411980415500289

edgy krakenBOT
#

:incoming_envelope: :ok_hand: applied ban to @mystic abyss until <t:1767793255:f> (4 days).

eternal gyro
#

!compban @eternal gyro

#

!compban 1443690760581939331

pliant heron
#

👋

eternal gyro
alpine cipher
#

guysss

arctic phoenix
eternal gyro
#

Guysss

alpine cipher
#

from where i can get a beginner friendly project or assignment of any student that i can do and earn is it possible

alpine cipher
#

tell me more about it

eternal gyro
arctic folio
eternal gyro
eternal gyro
alpine cipher
#

i want yo work seriously what about country bro

arctic folio
# eternal gyro No
 The company was named in honor of inventor Nikola Tesla and has since become a leader in the design, manufacture, and sale of battery electric vehicles (BEVs), stationary battery energy storage systems, solar panels, and solar shingles.
 Elon Musk, who joined the company in 2004 as a major investor and chairman, became CEO in October 2008 and ha```
eternal gyro
arctic folio
eternal gyro
harsh anchor
arctic folio
alpine cipher
#

guys can you stop fight and help me figure out how can i complete my task and get 15 marks from my proffesor please

alpine cipher
#

this is the task my proffesor gave me that i have to do a task and earn through python otherwise he will cut my 15 marks

eternal gyro
alpine cipher
#

though i am beginner

arctic folio
silver plover
edgy krakenBOT
opaque cosmos
silver plover
alpine cipher
#

bruh some one need to give me a project assignment work or something that i will do as a freelancer than that person will pay me for my work and i have to show the earning

velvet hull
arctic folio
alpine cipher
#

yeah i show one of my project to krieg

dry yacht
eternal gyro
opaque cosmos
arctic folio
eternal gyro
edgy krakenBOT
dry yacht
alpine cipher
#

bruh why i am going to impress him like whyyyy....m

dry yacht
opaque cosmos
#

@alpine cipher how long have you been learning Python?

arctic folio
alpine cipher
#

i just joined 2 months ago and need certificate which idk he will give or not without this task

opaque cosmos
alpine cipher
#

yeah i made that project and show you i want to do more work he actually expect alot from us idk why

opaque cosmos
alpine cipher
#

what is XMR

pallid garden
#

you'd be better off asking your parents

opaque cosmos
pallid garden
#

you don't have to reveal that your client is your parents

opaque cosmos
pallid garden
#

just help your parents do something useful with code

pallid garden
#

friends... not so much

shadow hull
#

The credit of developing first computer program goes to "lady ada augusta"
And she is a woman

arctic folio
pallid garden
#

i would rather not lose a friend over money

alpine cipher
#

you know he is soooo ____ he will find out then wiill write on paper what i did and will paste on entrance 😂😂

pallid garden
#

if i am helping my friends im doing it for free

arctic folio
opaque cosmos
#

@alpine cipher write up an invoice detailing what the payout is for and have the parent sign it and pay you cash. You can code something for your family!

arctic folio
pallid garden
arctic folio
pallid garden
#

one of my friends advertised on instagram that she vibe coded some app lol

pallid garden
#

...

arctic folio
#

what app ?

pallid garden
#

i have no idea

arctic folio
pallid garden
#

because it's vibe coded

alpine cipher
#

hey i can't code for my family he already made it clear

#

rayon i can research and made the project you want

pallid garden
arctic folio
pallid garden
#

besides

opaque cosmos
pallid garden
#

!rules paid

edgy krakenBOT
#

9. Do not offer or ask for paid work of any kind.

pallid garden
#

so yea

opaque cosmos
#

😭

alpine cipher
#

he is faster that gpt last time he caught a boy now he shares his story in every class that how he try go deceive him by asking for order from his uncle

arctic folio
slender hound
#

Guys who's studying python at 11th grade lvl

#

E.g. me

slender hound
past pagoda
pallid garden
#

unfortunately it's not allowed here

past pagoda
slender hound
pallid garden
#

why not

past pagoda
arctic folio
pallid garden
#

i dont think telling people what the rules are is minimodding

slender hound
opaque cosmos
#

@alpine cipher find an irl friend! That prof can't possibly be THAT much of an ass 😢

alpine cipher
#

@opaque cosmos are you serious about co ordinate to linear length project

arctic folio
opaque cosmos
arctic folio
slender hound
past pagoda
#

Your worth is not dictated by others' achievements

opaque cosmos
#

@alpine cipher have you tried... freelancing your professor? ballsy move, maybe it'll work?

arctic folio
past pagoda
#

You're like 14

#

It's not

arctic folio
alpine cipher
#

so what's the conclusion should i go and sleep instead of doing all this what he will do more than not giving my certificate or cut my marks will manage

past pagoda
arctic folio
arctic folio
alpine cipher
#

yeah in some time we will get that but i got no marks for that 😂😂

past pagoda
arctic folio
alpine cipher
#

not necessarily

fringe lava
#

hi

opaque cosmos
opaque cosmos
arctic folio
alpine cipher
#

i already made who will buy

arctic folio
alpine cipher
#

it's not tomorrow i got few days may be 3 or 4

arctic folio
#

Then you have a lot of time

pallid garden
#

i'd be frank with you, i'm not buying it, neither your program, nor the story

alpine cipher
#

tell me serious ways i can get clients will i actually went on face and post on some groups and also one thing happened 😁😁

arctic folio
pallid garden
#

this is not the right the place for you to ask for clients, nor is it the right place to ask people where you can find clients

slow rivet
#

!rule 9 yeah you are very close to the line here

edgy krakenBOT
#

9. Do not offer or ask for paid work of any kind.

pallid garden
#

for all i know you could be telling the truth, so I apologise for that, but I've never ever heard of a certificate where the assignment requires you to find a client that buys your product

alpine cipher
#

it's was about python i was asking where i can get clients related python you don't need to be that rude actually

#

i am going sorry if that hurt uou

oblique spindle
alpine cipher
#

bruh i am saying sorry

#

sorry you guys i was just seeking for some one hell me with understanding how to actually do it may be i was wrong i am apologizing

pallid garden
#

there is a marketplace channel in the practical python discord where they do allow you to hire/ask for clients

arctic folio
past pagoda
#

wth is happening here

pallid garden
alpine cipher
#

where are you from will tell you the institute name

pallid garden
#

what

#

why does it matter where i am from

oblique spindle
pallid garden
#

-# it's always afternoon somewhere in the world

eager smelt
#

true

oblique spindle
#

🤣

pallid garden
#

i mean sure, i dont think i have much of a qualification

harsh anchor
tender bloom
#

Well, it’s often because you can’t challenge the advice

#

Got to challenge something!

tender bloom
#

Had this happen to me on here before

#

Someone asking me for my qualifications when I was discussing microrepo vs monorepo architecture

harsh anchor
#

well?

eager smelt
#

monorepo 👍🏼 /hj

tender bloom
#

Well it ended without a discussion conclusion because I didn’t want to tell them about qualifications or my career

#

Did not seem relevant to the discussion really

pallid garden
#

eh, not worth debating with these kind of people

river needle
#

👋

tender bloom
#

If it’s done horribly then everyone suffers for it

visual juniper
#

You can always say I'm pretty dumb and uneducated but then blow their mind with knowledge

cerulean ravine
#

"mono-repos are much better!" "have you used them?" "No, but I have micro-services now and I hate them"

cedar island
#

👋

tender bloom
#

Actually - I think both have their problems for different reasons - but I was chatting with someone who was convinced microrepos were always better

cerulean ravine
slate wren
#

👋

tender bloom
#

Lots of waving

formal fern
#

👋

tender bloom
bronze dragon
#

<@&831776746206265384>

wet fox
#

Is there any value is analyzing data from discord servers?

turbid bloom
#

I mean it depends on what you want to do bro, do u want to derive any sort of insights?

eager smelt
#

!cpban 1364854731620745248

edgy krakenBOT
#

:incoming_envelope: :ok_hand: applied ban to @acoustic charm until <t:1767796809:f> (4 days).

hybrid nebula
wet fox
#

Like mutes/second would be something but idk the use of that statistic

#

I just want practice with python really, not really trying to derive insight, but if I can then all the better

cerulean ravine
harsh anchor
#

given that you need a selfbot to send image attachments in this channel, right?

hybrid nebula
harsh anchor
#

I see

hybrid nebula
#

I honestly think discord handles 'uploading to cdn' and 'attaching to message' as two distinct actions

spark obsidian
cerulean ravine
wet fox
turbid bloom
hybrid nebula
wet fox
turbid bloom
#

pick up the pandas library in python it's the most used for data analysis

spark obsidian
wet fox
#

I've seen pandas, numpy and seaborn which is pretty neat. I just asked chatgpt and it said this question which seems interesting: Is graduated punishment actually better than jumping straight to timeouts?

#

Maybe implementing some sort of heat

#

Interesting

rugged barn
#

👋

hybrid nebula
wet fox
#

Or atleast gauging how often repeat offenses occur

#

Hmm true

#

How does one measure if someone started behaving?

silver plover
#

Maybe have several systems predicting users future crimes and voting on it?

#

3 seems like a good number, in case of ties

wet fox
#

I also like the number 3

spark obsidian
#

🤨 ayo we got predpol in discord before gta6

charred tusk
#

Consensus relies on the community wanting to be good

robust ledge
#

While diving deep on the questions you can ask and answer with data; don't think too deeply if you're just exploring and learning. If you've never mapped data before, your question can simply be: How do I map this data?

silver plover
#

What do you do if there's one disagreement in the minority? What would you do with that report?

wet fox
#

I've got a direction, im going for it. Thanks to all of you.

#

Anyone who want the data I don't mind sharing too

plush iris
#

Im interested in share mi knowledge ad recieve the one from others in python

wet fox
#

I've already decided to track timeout

chilly jasper
#

Gemini after destryoing my week old script:
"👈✌️😌🦅"

silver plover
#

!compban 1218853678329495644

edgy krakenBOT
#

:incoming_envelope: :ok_hand: applied ban to @leaden hamlet until <t:1767798358:f> (4 days).

chilly jasper
#

they out there raiding security servers man

cunning carbon
#

Is tablet good for learning coding?

compact eagle
cunning carbon
#

I don't have computer, and building computer, or buying a laptop is much expensive for me

hybrid nebula
#

you definitely want an actual computer

#

when in doubt, use a raspberry pi, you can get those for cheap

cunning carbon
hybrid nebula
#

raspberry pis are cheap

compact eagle
unborn lagoon
hybrid nebula
compact eagle
#

oh yes
i assumed android

hybrid nebula
#

ime

cunning carbon
hybrid nebula
#

you can install termux

#

(please from f-droid and not google play)

cunning carbon
#

Is it possible?

hybrid nebula
#

I still recommend a raspberry pi for more serious projects (good luck hosting a web server on your laptop)

unborn lagoon
hybrid nebula
#

and c) you either get all your android apps, or a desktop environment, probably never both

cunning carbon
hybrid nebula
#

you can only use features Termux or Termux-API exposes

winged girder
#

hey guys im new here to coding in general im thinking about learning python

hybrid nebula
cerulean ravine
winged girder
cunning carbon
undone wagon
#

Why is my pyinstall executable so bloated because my .py file is 46kb but executable is 31.64mb

unborn lagoon
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.

unborn lagoon
undone wagon
#

Is there a way to reduce filesize

#

Or is porting to c the only option?

gilded hornet
undone wagon
#

Why would I increase it?

unborn lagoon
# undone wagon Is there a way to reduce filesize

One would be to simply ship the source code files as is (if possible, perhaps via a zipapp) and have some form of setup script that installs a Python runtime. Another would be to use something like upx, though iirc this tends to trip the AVs. The other would be perhaps trying with Nuitka, that might do better size-wise.

undone wagon
#

What is AV?

unborn lagoon
undone wagon
#

And what are cons of Nuitka

charred tusk
#

That it's annoying as hell to work with

#

Is it Python executable o'clock again?

hybrid nebula
#

It's actually not too hard

leaden plinth
#

guys

unborn lagoon
# undone wagon And what are cons of Nuitka

Nuitka is effectively a different Python compiler, so things that might work with CPython might not work with Nuitka (though I'm not sure of any significant ones here, except certain libraries). You will also need a C compiler for building stuff with Nuitka.

leaden plinth
#

i made a Rock paper scissors project in python

#

i feel so proud

charred tusk
winged girder
leaden plinth
harsh anchor
leaden plinth
#

its like player vs computer

harsh anchor
#

in one message, please 😬

leaden plinth
#

oh

#

1 sec

finite sigil
#

How do I know which off-topic forum to ask a Javascript question in? (Looking for a guru)

leaden plinth
#

I Lay the instructions, like 0 = rock and 1 = paper and 2 = scissors, then i ask the user what do they want to go for, then i print their choice and I import the random module beacuse they will verse a computer. and i made a big BIG chain of if conditions 🙂

#

where do I send me code?

#

(im not really good at explaining stuff.. 😥 )

harsh anchor
#

sounds reasonable enough

leaden plinth
#

btw

#

I do need help for OOL

#

(Object oriented Lang)

#

basically just classes i need to learn

harsh anchor
#

do you have a specific question?

finite sigil
undone wagon
shrewd pine
undone wagon
#

Something that I have been thinking about is adding depth like in chess bots where it looks multiple moves in the future

undone wagon
#

It doesnt work if I dont put global

harsh anchor
undone wagon
#

I don't know why but the only fix is global keyword

#

Which hasn't been causing troubles

cerulean ravine
shrewd pine
shrewd pine
undone wagon
#

Yes

shrewd pine
#

what you probably want it to find the shortest path to the target, and act based on that

for that you would need to implement something like a bfs

undone wagon
#

What is bfs

shrewd pine
#

breadth first search

undone wagon
#

Is it a good idea to add depth like what chess bots are doing but on a much simpler level

#

Like it doesnt account for the player moves

shrewd pine
#

afaict it's not quite the kind of depth you need

harsh anchor
#

i see there is an enemy?

shrewd pine
#

what you would want is to make a move to the cell which has the shortest distance to the target, taking the obstacles into account

undone wagon
undone wagon
undone wagon
undone wagon
bright shoal
leaden plinth
#

hello

#

can someone explain class to me

#

id highly appreciate it

harsh anchor
#

do you have a specific question

leaden plinth
#

what are clsses used fore

#

for

harsh anchor
#

creating custom objects that behave how you want

leaden plinth
#

could you go into more detail please

shrewd pine
# undone wagon Can you explain it to me

the simplest thing might be to start at the target and expand layer by layer like so

#........
#........
#...#..O.
#...#....
#.@.#....
########

#........
#......1.
#...#.1O1
#...#..1.
#.@.#....
########

#......2.
#.....212
#...#21O1
#...#.212
#.@.#..2.
########

#87654323
#76543212
#876#21O1
#987#3212
#A@8#4323
########
harsh anchor
leaden plinth
#

yep

harsh anchor
# leaden plinth yep

classes are how you make custom types in python. so you can make your own objects that behave how you want

leaden plinth
#

something like functions?

shrewd pine
#

in this case the smallest number you can reach is an 8, and either up or right would take you closer to the target

#

(I probably accidentally flipped O and @)

harsh anchor
leaden plinth
#

right

#

How are classes used?

shrewd pine
#

(making diagrams on a phone was a mistake)

harsh anchor
#

essentially the same way you use any built-in type. you create it, you do things to it with its methods, etc

leaden plinth
harsh anchor
#

but you have used things like lists, right?

leaden plinth
#

yes

harsh anchor
#

are you following a specific resource?

leaden plinth
#

w3schools

#

i dont really know anything other than that resource

eager smelt
#

w3schools is a bad resource for Python

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.

leaden plinth
#

oh

harsh anchor
#

automate the boring stuff doesn't teach oop, but a byte of python does

leaden plinth
#

btw

#

im going for more of a user-friendly ui

#

but ill try

#

oh that make thing easy for me

#

whats self?

spark obsidian
leaden plinth
#

classes

#

(methods)

spark obsidian
#

to keep it short, because I can't and won't do better in a few lines than the thousands of tutorials out there, self refers to the instance itself.

In other terms,

class Foo:
  def bar(self):
    ...


inst = Foo()

inst and self refer to the exact same things here

harsh anchor
#

self refers to the instance that you called the method on

leaden plinth
#

so self is the class?

limpid meadow
#

The instance of a class

leaden plinth
#

so like a action?

spark obsidian
#

there is a bit more of a distinction to do there, the core principle of oop is that you distinguish the blueprint from the realized product

#

classes define the concept of what you have, and instances and concrete realizations of it

split garden
leaden plinth
#

oh so self is the actual product?

shrewd pine
spark obsidian
#

Here is a minimal example before getting back to self

class Dog:
  def __init__(self, name):
    self.name = name

fido = Dog("Fido")
cooper = Dog("Cooper")

The class Dog defines what a dog is. In our case, it's saying that a dog has a name
Then, you have fido and cooper which are actual Dog, and therefore have concrete names

split garden
leaden plinth
#

(dunder)

undone wagon
split garden
cerulean ravine
leaden plinth
#

oh

#

so its the base?

cerulean ravine
leaden plinth
shrewd pine
# undone wagon The idea

ignoring obstacles for the time being, you can compute all the distances to a point by expanding from that point, layer by layer

      x
    01234
    -----
  0|.....
  1|.....
y 2|..x..
  3|.....
  4|.....

distance 0: [(2, 2)]

      x
    01234
    -----
  0|.....
  1|..x..
y 2|.x0x.
  3|..x..
  4|.....

distance 1: [(1, 2), (2, 1), (2, 3), (3, 2)]

      x
    01234
    -----
  0|..x..
  1|.x1x.
y 2|x101x
  3|.x1x.
  4|..x..

distance 2: ...
#

if you have obstacles it limits what cells you can actually expand into at each step

#

if you have this computed everywhere you can just look at which cell around you has the lowest distance to the target, and move there

oblique spindle
cerulean ravine
oblique spindle
#

._. oh I replied to wrong message

midnight patrol
#

Hello devs!
Question, apart from basedpyright, do you also use mypy?

Or is the linter + the type system sufficient enough

steady rain
#

whenever Astral makes something, it quickly becomes the most popular tool for that thing.

midnight patrol
#

I see, interesting...

#

(I haven't heard of astral before, will look into it)

#

Oh, Astral is uv and Ruff...
Wow... okay, yea that's cool

oblique spindle
#

Isn't Ty already released?

cerulean ravine
midnight patrol
#

Beta apparently

cerulean ravine
#

beta? not sure!

oblique spindle
midnight patrol
oblique spindle
#

Let's use Ruff and UV till now

cerulean ravine
#

0.0.8, beta

unborn lantern
#

Hy

#

How to understand python class and object

midnight patrol
unborn lantern
#

How many members here ?

bright shoal
#

at least 3

patent sky
#

hi

#

does any one know what yolo is ?

finite sigil
#

Can someone please tell me which forum I can post a Javascript question and get a decent response. The silly named Off-Topic forums all see like they have random gibberish posts in them. (Genuine question)

oblique spindle
finite sigil
oblique spindle
#

The Programmer Hangout The Coding Den

#

Devcord is also a good server for web development

brisk osprey
#

hi guys I need help

#

hackathon ideas

oblique spindle
brisk osprey
#

the topic is "everyday problems and intelligent solutions"

oblique spindle
#

If you're expecting a response in a minute it's honesty not possible.

finite sigil
velvet hull
#

I m trying to figure out my ubuntu but idk I am having issues with connecting to wifi how do I fix it anybody knows is this offtopic?

finite sigil
#

It won't let me join - strange because I have never been a member there

wise plinth
#

can any1 provide me a good video to learn python? i watched the course of brocode saw for 8hrs/12 then it just becamed too hectic without any project is there any good course to help me with that?

finite sigil
cerulean ravine
finite sigil
cerulean ravine
velvet hull
#

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

wise plinth
finite sigil
bronze dragon
# finite sigil So does that make them a bad place to post?

if the JS servers aren't active enough, our off-topic is worth trying. we're active and have lots of people who have experience in a lot of different fields.
this still doesn't guarantee a response, nothing will, but the cost of trying is zero anyway.

finite sigil
velvet hull
formal lintel
#

is it possible to add any unique name or id to addTrack of peerConnection of webRTC?

tropic mason
brave nexus
#

what is the for and in functions for

#

the course im watching didnt explain it 😢

tropic mason
bronze dragon
brave nexus
#

maybe i missed it

bronze dragon
#

they do explain for loops in cs50

brave nexus
#

wait lemme rewatch

bronze dragon
#

check if you didn't accidentally skip a day, or something?

tropic mason
shadow hull
#

"One new thing in a day keeps the anxiety away!"

vagrant acorn
#

Does anyone know about "anvpy"?

peak relic
shadow hull
#

What is anvpy?

vagrant acorn
#

I am not getting it maybe because I am new to python

brave nexus
shadow hull
#

Me too New

peak relic
vagrant acorn
#

In Google play there is a app called anvpy

brave nexus
#

they are for loops

vagrant acorn
#

Python android builder

tropic mason
peak relic
vagrant acorn
#

Maybe it's a new tool i think

shadow hull
#

Yeah there is a app called anvpy

#

Only 26 reviews , exactly new app

vagrant acorn
#

Yes

shadow hull
#

I am reading a book, else i could install and open it

#

AnvPy (short for Android Versatile Python or Python Android Builder) is a mobile IDE (integrated development environment) for Python. �
PyPI
It lets you write Python code and immediately run it as an Android app (APK). �
Google Play
You can build apps, simple games, and other Python projects on your phone or tablet. �
APKPure.com

plucky beacon
#

anyone here does PyTorch ?

steady rain
shadow hull
#

Having no friend is better than having fair weather friends

steady rain
#

.topic

verbal wedgeBOT
#
**When you were first learning, what is something that stumped you?**

Suggest more topics here!

steady rain
#

decorators.

merry bronze
#

Decorators are insane

shadow hull
shadow hull
celest osprey
#

🤔

steady rain
vagrant acorn
#

Could anyone recommend how to start android development using python am confused ?

steady rain
frosty oriole
#

you may want to look into Kotlin which seems to have a better ecosystem for android development

vagrant acorn
#

But I saw many apps and games prototypes made with python

frosty oriole
vagrant acorn
#

In the samples section of "anvpy"

nova breach
#

if I want to use MSYS2 GCC for building libs and don't want MSYS2 Python to be ran in Powershell, what should I do?

peak relic
spice hill
#

apparently Swift also works on android

sullen dust
#

What doesn't run on android bruh

vagrant acorn
#

Oo. Thanks i thought running python locally on android will minimize server cost thats why

#

Maybe i should ask "anvpy" developer once

spice hill
#

If you want to host some server side program on a phone, that's a different story

#

I think that's more likely to succeed

vagrant acorn
#

Can I install python libraries locally

#

On android

peak relic
vagrant acorn
#

How

charred tusk
#

pip installs packages

vagrant acorn
#

On android ?

charred tusk
#

ah

#

yes

peak relic
# vagrant acorn How

Depends on your editor. You can try Acode or Termux or PyDroid. Acode or Pydroid are simpler to use and has some specific steps to install via their GUI. Termux requires you to install Python and pip install your libraries but involves a bit more technical with vi or nano

charred tusk
#

But you need whatever emulator first

vagrant acorn
#

As a standalone app

#

.apk

steel whale
steel whale
#

kivy is easy to use too

vagrant acorn
#

Do you know about anvpy, maybe it's a alternative to it i think

steel whale
#

I recommend kivy for Android development

vagrant acorn
#

It's in Google play

peak relic
steel whale
#

@vagrant acorn pydroid is solid, use it

vagrant acorn
#

Yes pydroid I tried but I didn't see any option to create standalone .apk package fromthe samples section

#

It just runs there

steel whale
#

if you wanna make android apps use kivy to make the app and buildozer to build it

dusky crag
#

Hey people

crystal scarab
#

What takes someone from basic understanding of python to intermediate with python?

versed jasper
#

it depends...

crystal scarab
#

Yea this is probably a really vague question

#

😭

vagrant acorn
steel whale
#

I recommend it tho

versed jasper
vagrant acorn
#

Ok we can also do it in colab

steel whale
real cosmos
crystal scarab
vagrant acorn
#

Oops 30 minutes that's a lot of time for buildozer

#

Is this efficient for testing

steel whale
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.

vagrant acorn
#

I think it's a kinda project not a stable way for app development

sullen dust
#

theres alot of stuff on the resources page that can help you aswell

crystal scarab
#

My autocorrect messed me up I ment to say brocode

vagrant acorn
#

Oh, but in "anvpy" i build the app in seconds. Maybe i should study on it.

peak relic
vagrant acorn
#

No i just copied a sample code in "anvpy" app and build .apk with it

versed jasper
crystal scarab
frosty oriole
versed jasper
crystal scarab
vagrant acorn
#

No i have a telegram bot automation project using python and inwant it to make it an app without relying on servers

crystal scarab
#

I’ll have to learn how to use that

#

Is it possible to only give access to certain people?

unborn lagoon
crystal scarab
runic flower
versed jasper
crystal scarab
#

Although I made most of it with ai last time so now I get the chance to make it fully myself

versed jasper
compact loom
#

are django models used so the migrate command understands what needs to be added to the schema?

rapid bridge
cosmic mantle
#

Hey guys i just finished chapter 6 of automating boring stuff in python what should i build to practice all those

compact loom
rapid bridge
compact loom
#

yeah you gotta makemigrate then migrate

#

its like commit and push

versed jasper
compact loom
#

theres alot to take in with django

#

kinda confusing lol

shrewd pine
#

with more naive sharing someone else can easily just clobber your stuff without thinking

compact loom
#

q.choice_set.create im kinda confused what im looking at here

shrewd pine
#

getting conflicts in such a case is a great feature :)

compact loom
#

a method of a class, but whats the other bit?

#

.create

versed jasper
cosmic mantle
#

Hey guys i just finished chapter 6 of automating boring stuff in python what should i build to practice all those

shrewd pine
compact loom
#

tutorial has lost me

#
class Question(models.Model):
    question_text = models.CharField(max_length=200)
    pub_date = models.DateTimeField("Date Published")

    def was_published_recently(self):
        return self.pub_date >= timezone.now() - datetime.timedelta(days=1)
    
    def __str__(self):
        return self.question_text

class Choice(models.Model):
    question = models.ForeignKey(Question, on_delete=models.CASCADE)
    choice_text = models.CharField(max_length=200)
    votes = models.IntegerField(default=0)

    def __str__(self):
        return self.choice_text
#

these are the models it shows you how to make

rapid bridge
#

.choice_set is automatically generated as the set of choices for which question is q

#

Don't remember the create bit tho.

compact loom
#

i mean it creates a choice

#
# Create three choices.
>>> q.choice_set.create(choice_text="Not much", votes=0)
<Choice: Not much>
>>> q.choice_set.create(choice_text="The sky", votes=0)
<Choice: The sky>
>>> c = q.choice_set.create(choice_text="Just hacking again", votes=0)
shrewd pine
#

is this orm stuff?

compact loom
#

but ive never seen like class.method.???

#

just in python in general

shrewd pine
edgy krakenBOT
#

@classmethod```
Transform a method into a class method.

A class method receives the class as an implicit first argument, just like an instance method receives the instance. To declare a class method, use this idiom...
compact loom
compact loom
rapid bridge
#

foo.bar.baz in the general sense is just

temp= foo.bar
temp.baz
compact loom
#

oh thats confusing as hell

#

i hate that

rapid bridge
#

There will be more complex chaining cases in the orm later IIRC

shrewd pine
#

we have namespaces at home
namespaces at home:

compact loom
# edgy kraken

ive not once used decorators so makes sense ive never seen this

rapid bridge
#

I'm surprised you've never seen people do like py s=s.strip().split(',') or similar

compact loom
#

never seen them chained together

shrewd pine
#

but you can do a lot with it

compact loom
#

im tryna think of a decorator ive seen before

#

i cant remember it though

shrewd pine
#

staticmethod?

#

cache?

compact loom
#

maybe

#

cant remember really

#

ive never had a reason to use them

shrewd pine
compact loom
#

not really

shrewd pine
#

if not maybe you're missing out

compact loom
#

ive never worked on a large scale project, maybe thats why ive never used them

#

i just work on silly tiny things

#

hence why django has me confused pithink

shrewd pine
#

it's hard to know there was reason to use something if you don't know what it does :P

compact loom
#

i guess yeah

cobalt flax
#

Dude the more I look at like tech and electronics content the more I get motivated to learn python

#

its crazy how much stuff can be done with python

#

i've heard python isnt even like a fast language compared to others

shrewd pine
#

tl;dr about the syntax sugar

# Given
def deco(function):
  ...

# this
@deco
def fun(...): ...

# is equivalent to
def _temp(...): ...

fun = deco(_temp)
cobalt flax
compact loom
#

if i could post a terrified look gif right now i would

shrewd pine
rancid fractal
cobalt flax
#

also im getting better at touch typing

runic flower
shrewd pine
cobalt flax
#

hitting letters like p, q and b is so weird tho

cobalt flax
#

is coding games in python efficient then

abstract vigil
#

Does a variables exist outside a for loop

rancid fractal
# cobalt flax radical

Besides many Python libraries are written in C/C++ so you'll get speed boosts where it matters. There is a reason why libs like pandas are numpy got so popular.

But yeah you can write very non-performant code in any language

compact loom
#

well i had a productive 20 minute session with django today ducky_concerned

#

time to contemplate

bronze dragon
shrewd pine
#

usually picking a faster language can win you a constant factor in performance, which may or may not matter depending on the circumstances

bronze dragon
#

if the for loop doesn't run for at least one iteration, the variable won't be defined and you'll get a NameError

velvet hull
#

may i ask a foolish question aside from the sub branches of python is it possible to fully master python as in coding or is it a very vast thing

abstract vigil
velvet hull
#

i kinda am at CLASS and i dont think there are topics beyond that or are there?

shrewd pine
bronze dragon
cobalt flax
#
for i in range(10):
    integer = i

print(integer)
``` wow i didnt know that worked
velvet hull
bronze dragon
#

idk what you mean by "subbranches"

velvet hull
#

like ai ds is a subranch game dev web dev etc

shrewd pine
#

there is always more to learn if you want or need to

rapid bridge
bronze dragon
shrewd pine
#

you will never learn everything, and you don't need to

rapid bridge
#

The core language is still surprisingly extensive tho

shrewd pine
#

it is

velvet hull
#

ic

#

is lambda a thing after classes or smt ,heard this thing called lambda

bronze dragon
#

a lambda is just a way to create small, one-expression, unnamed functions.

velvet hull
#

ohhh

dry pike
#

and lambda itself is an expression

shrewd pine
#

!d tabnanny

edgy krakenBOT
#

Source code: Lib/tabnanny.py

For the time being this module is intended to be called as a script. However it is possible to import it into an IDE and use the function check() described below...

rapid bridge
#

The actual semantics of async generators are pretty horrific, for example.

shrewd pine
#

!d tabnanny.NannyNag

edgy krakenBOT
#

exception tabnanny.NannyNag```
Raised by [`process_tokens()`](https://docs.python.org/3/library/tabnanny.html#tabnanny.process_tokens) if detecting an ambiguous indent. Captured and handled in [`check()`](https://docs.python.org/3/library/tabnanny.html#tabnanny.check).
rapid bridge
#

I've implemented the damn thing and still couldn't explain it without referring to the code.

velvet hull
#

ic

cosmic mantle
#

Hey guys how do i find real problems for my level to solve and improve myself

cobalt flax
#

like something involving spreadsheets or smt

bronze dragon
cosmic mantle
cosmic mantle
cobalt flax
#

keep learning

spring minnow
cobalt flax
#

im in that stage too

cosmic mantle
#

Ye you are right

tepid obsidian
next steeple
#

yoo anyone dm me if u wana make a python aimbot with me

edgy krakenBOT
#

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

spring minnow
#

This server does not allow discussions about TOS-breaking activities.

flat moon
#

!rules

edgy krakenBOT
#

The rules and guidelines that apply to this community can be found on our rules page. We expect all members of the community to have read and understood these.

graceful isle
#

anybody here need an extra coder on a project? i'm new and sort of floundering for direction.

harsh wolf
#

everyone register this

#

Open Source

verbal citrus
#

what is it? you didn't even explain what it is

harsh wolf
#

it is a 1 month open source program

#

just Like gssoc

verbal citrus
#

looks like spam

runic flower
# cobalt flax is coding games in python efficient then

it can be, there's been a few, speed is not the issue though, distribution is. If you're making games you probably want to distribute the game to customers. Which would require them to have python and the source code to run. For something like this you're probably better off making your back end in any language you want (including python) and then your frontend distributable client in a native executable format.

verbal citrus
#

why is it a direct like to a clerk login

#

sus

harsh wolf
#

you can see it on social media also

wet fox
grave tree
#

Please don't advertise/spread your referral code here

harsh wolf
#

there are so many community partners, sponsors, exciting rewards

wet fox
#

oops wrong ping

verbal citrus
#

yeah no this seems like an ad/promo

harsh wolf
#

you can join without referral id also

wet fox
#

should've started with that

harsh wolf
#

this is just normal website link

#

interested one can visit this

grave tree
#

Please don't advertise. That website has nothing meaningful and it's really screaming either scam or a project that's launched entirely too early

verbal citrus
#

the website isn't even obvious what it's supposed to do

harsh wolf
#

ok leave it

#

no need to register

unborn lantern
#

any indian here ??

frosty oriole
#

many such cases

mossy sigil
unborn lantern
#

can somebody explain me why i i did not remember the logic behind the code stuf of that

silver plover
tranquil tinsel
#

Is there any recent news on making it easier to create a single executable to distribute applications?

tranquil tinsel
timid ember
tight tree
#

@steady rain curious why you are recommending uv to beginners (over pip)? I have never used it but does it not add an additionally layer of complexity? As in less info about it online and not being the convention of many tutorials and read.mes?

steady rain
upper sigil
#

async generators are just fundamentally broken tbf

#

oh I was scrolled up yert

tight tree
#

I mean that many packages tell you to pip install. Same with pypi.org. I am mostly curious why it is so popular when the only benefit I know of is it is a bit faster

steady rain
cerulean ravine
tight tree
#

uv does not use virtual environments?

cerulean ravine
steady rain
radiant granite
#

Umm hello lads

charred tusk
#

Its less that it’s smooth or use and more that it’s just always required and hidden from you
But that doesn’t make it any less amazing

cerulean ravine
timid ember
radiant granite
#

Ok

charred tusk
unborn lagoon
radiant granite
radiant granite
charred tusk
cerulean ravine
tight tree
#

does it still default to pypi.org as its source/name reference?

charred tusk
#

Yes

steady rain
#

yes, but why does that matter?

cerulean ravine
tight tree
#

because I dont want to download a name sniped package thats a virus

cerulean ravine
charred tusk
tight tree
#

idk, im sure there are other sites that are less popular that host python packages

charred tusk
tight tree
#

no

charred tusk
#

Oh

cerulean ravine
charred tusk
#

Exactly

#

You kinda implied that pip was the only place

cerulean ravine
charred tusk
tight tree
#

If matplotlib somehow loses their name on pypi I hope that someone notices before I install it 🙃

cerulean ravine
tight tree
#

^

charred tusk
#

Ah

radiant granite
#

🙏

rugged barn
#

Good timezone

silver plover
#

I do wish there was a nice solution for sandboxing or restricting individual packages.. maybe an eventual opportunity with sandboxing subinterpreters?

charred tusk
#

The company behind uv is making their own package index, pyx
But it’ll be a paid solution

There’s not really anyone mirroring the entire PyPI
Alternative indexes are mostly hosting their own group’s projects

silver plover
radiant granite
#

Isn't pip used to install packages?

silver plover
fading cipher
#

Python is named after a snake

cerulean ravine
radiant granite
rugged barn
#

PSF's own index is already sketchy enough tbh

cerulean ravine
rugged barn
silver plover
cerulean ravine
radiant granite
radiant granite
charred tusk
tight tree
rugged barn
silver plover
#

I understand why it's hard/impossible, just that it's something I'd love

spice hill
cerulean ravine
rugged barn
#

Oh, yeah
Fair enough, let me edit my message

#

TY

charred tusk
charred tusk
spice hill
charred tusk
#

Right?

silver plover
cerulean ravine
charred tusk
#

There is a hot standby for PyPI, but it’s not an active mirror.

charred tusk
#

Allowing users to pick their own durations is pedantic?

spice hill
cerulean ravine
spice hill
#

!mute @spice hill 30m

edgy krakenBOT
#

:x: @spice hill, you may not timeout someone with an equal or higher top role.

spice hill
#

yeah, I got pinged by the bot with this message

⚠️ @spice hill The timeout for @spice hill can't be longer than 28 days. I'll pretend that's what you meant.

charred tusk
spice hill
#

While it is a bit pedantic, I think it just prevents people from getting a minor nerd snipe when they want to figure out whether P1M means past 1 minute, or past 1 month, and whether month means 30 days or the length of current month in UTC etc. (also less code to write and test, even if a small amount)

cerulean ravine
spice hill
#

true

merry bronze
#

Guys, is there anyway I get into Django and pretty much know nothing about HTML and CSS?

merry bronze
#

Advanced. I’ve been coding python for four years now

#

But I never got into web development

grave tree
#

Django's tutorial and documentation are really good. The basics of HTML and CSS shouldn't be hard to pick uop

#

Plus there are a lot of CSS libraries/frameworks that make baseline styling easier

merry bronze
#

Great

#

So it’s important to know the basics of those two

spice hill
merry bronze
#

And what you guys think about get bootstrap?
I believe it’s not good to use it since copy, paste and modify something you barely know about is usually not a great idea, but what do you guys think about starting with it?

sullen dust
wide wagon
#

I've been on vs code for an entire day should i go sleep

#

jk i just forgot it open ive been on vs code for like 2h

#

Im tryna figure out A* since I literally have no project ideas

hybrid nebula
wide wagon
#

on that grind

merry bronze
#

Doesn’t this limit you?

#

Or your code?

hybrid nebula
harsh anchor
wide wagon
sullen dust
hybrid nebula
wide wagon
#

Only thing i got to help me is an abstracted version of A* (pseudo code)

wide wagon
#

and that might be slow as hell since my nearest mcdonalds is..30-35min away

hybrid nebula
wide wagon
#

Still got a few years 😭

hybrid nebula
#

.topic

verbal wedgeBOT
#
**What is your motivation for programming?**

Suggest more topics here!

wide wagon
# verbal wedge

I dont want to be cooked when I get into comp sci(so in about.. a year)

steady rain
#

Keeping my job
And thereby not dying

hybrid nebula
upper sigil
#

for some reason they keep making computers worse and programming lets you make computers better and fun

autumn forge
wide wagon
#

Icl this A* alg looks like complete gibberish at 1am..

steady rain
spice hill
wide wagon
#

(thats a joke i use windows)

granite wyvern
#

Ouch:

>>> "a".splitlines()
['a']
>>> "".splitlines()
[]
upper sigil
#

I meant more in the sense of more and more menial things require computers so they're not cool and fun things anymore

pastel sluice
#

Good 2026 to all

autumn forge
granite wyvern
#

Yes

#

Naive

wide wagon
granite wyvern
#

Trying to draw railroad diagrams in the terminal:

╭────────╮
│foo     │
│longer  │
│short   │
╰────────╯
wide wagon
#

although I can't come up with anything fun

silver plover
autumn forge
wide wagon
autumn forge
#

ah

granite wyvern
wide wagon
#

and optimizations!

silver plover
wide wagon
#

bad at maths

silver plover
#

If you can implement optimizations, you're good at math.

#

Maybe bad at math class

wide wagon
wide wagon
#

well decent not good

autumn forge
#

sounds like you're not bad at maths then :)

wide wagon
cerulean ravine
wide wagon
silver plover
spark obsidian
#

Imagine using abstractions
I use magnets to manually flip the bits on my hard drive to code

wide wagon
silver plover
harsh anchor
wide wagon
wide wagon
harsh anchor
wide wagon
silver plover
# wide wagon That looks like pretty scary math to me <:Pray:1377287589907922994>

The Koch snowflake (also known as the Koch curve, Koch star, or Koch island) is a fractal curve and one of the earliest fractals to have been described. It is based on the Koch curve, which appeared in a 1904 paper titled "On a Continuous Curve Without Tangents, Constructible from Elementary Geometry" by the Swedish mathematician Helge von Koch....

harsh anchor
wide wagon
frosty oriole
#

one might be surprised

wide wagon
harsh anchor
silver plover
wide wagon
harsh anchor
cerulean ravine
wide wagon
silver plover
wide wagon