#python-discussion
1 messages · Page 150 of 1
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
Dad mode; take your education seriously, don't use GPT without at least trying to do something first
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
Read it
It's real
i just liked pop! os back then ❤️
!projects
The Kindling projects page contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
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
😅
Make a weather app
make a hangman game
make a random number guessing game
make a book management system
it was a experiment, nobody was actually killed. FYI.
Are we talking about I Robot?
If we design robot for specific task if anything comes in way of robot and the task robot can do anything
That’s a weird show
I’m not sure I like that show
nice script
Bro that's real 😭
Search
You might like the Spanish version, Yo Robot https://es.wikipedia.org/wiki/Yo,_robot_(película)
ill just put a SHA256 hash between the robot and the target , good luck to AI for few million years trying to reverse the hash
better yet , just make unhashing the hash as the target of AI
What's is SHA256
It’s way better for dev work
It can be worse at other things sometimes
Get the virtual machine and try it out; that’s the only way you’re going to find out
a hashing algorithm
(Insert xkcd crowbar gif) wrench. https://xkcd.com/538/
this is what auxilio was taking about https://www.anthropic.com/research/agentic-misalignment
Heh
That’s great
No let me send video
That's not
wow i got one better than gpt https://ieeexplore.ieee.org/document/9803457
the video is completely based on this paper
thanks
Okay, I'll try it, thanks for the tip
Also check ACM, it's similar to ieee
How long it gonna take to learn python medium though?
okk need 4 papers
How long did it take you to learn Java
Also, google scholar is pretty good
Like I started it for fun making mods and plugin idk how I learn
Java take me like 1 year but the thing is I got a motivation and reason why should I learn java
There's no timeline. Keep learning and doing projects and you'll keep becoming a better programmer.
How long ago you started?
Some stuff will be easy, some stuff hard
I'm old.
Oh sir age?
Interesting, great video
I remember y2k
?
!compban 332411980415500289
:incoming_envelope: :ok_hand: applied ban to @mystic abyss until <t:1767793255:f> (4 days).
👋
Bro you scared me I thought bot sended my ban msg
guysss
asimov laws
Guysss
from where i can get a beginner friendly project or assignment of any student that i can do and earn is it possible
Tesla
They do pay beginners
tell me more about it
Your country first please
He meant tesla, the company.
No
Your country first
i want yo work seriously what about country bro
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```
Bro it depends on your country theirs different companies
Just leave it
Just read it
Oh how much share elonmusk now own?

I cant understand your question since you cant text english properly.
guys can you stop fight and help me figure out how can i complete my task and get 15 marks from my proffesor please
What's task
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
How much %% share eleon musk now own from Tesla e.g revenue/ownership
though i am beginner
Which task!
Google it.
Im not Elon Musk 😂
!ot
Please read our off-topic etiquette before participating in conversations.
that sounds cruel. What is the task
Open a help thread please and explain your question there: #❓|how-to-get-help
Stop stealing my work 😉
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
that is the task??
Idk maybe #career-advice will help
She needs to make a project with she can earn cash
yeah i show one of my project to krieg
yeah, but like: what kind of cruel assignment is that? Especially considering she's a beginner?
It depends on how much you know About python I got a job for you if I explain
Read this y'all who can't read
I can read broken english too. I was in disbelief.
Probably she wants to do it herself to make professor proud lol.
Bro your Pfp seem like a parrot first to me
!ot
Please read our off-topic etiquette before participating in conversations.
unrelated to #python-discussion
She said her prof will give her a 0 ("cut 15 marks", I assume that means give her an F).
bruh why i am going to impress him like whyyyy....m
But still, like wtf is that task?
@alpine cipher how long have you been learning Python?
She told me in dms she needs full 15 points
but she made a weather app and i think she wants this project bad so she can get full 15 points with the weather app she made before.
i just joined 2 months ago and need certificate which idk he will give or not without this task
freelance a python project and show proof of earnings from it
yeah i made that project and show you i want to do more work he actually expect alot from us idk why
Make a timer
I've got a good one. Convert coordinates to linear lengths in decimal feet. I'll pay you in XMR
what is XMR
you'd be better off asking your parents
Monero crypto
you don't have to reveal that your client is your parents
that... may be a better client.
just help your parents do something useful with code
And frends
friends... not so much
The credit of developing first computer program goes to "lady ada augusta"
And she is a woman
Not you,
Her
i would rather not lose a friend over money
you know he is soooo ____ he will find out then wiill write on paper what i did and will paste on entrance 😂😂
if i am helping my friends im doing it for free
I meant showing it off to your frends, not to ask money lol
@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!
I do everything for free
i dont like showing off to my friends
I didnt meant to say brag
one of my friends advertised on instagram that she vibe coded some app lol
Thats cool
...
what app ?
i have no idea
Why so ?
because it's vibe coded
hey i can't code for my family he already made it clear
rayon i can research and made the project you want
just dont tell him who the person is in relation to you
You dont have to be somone with skills to make great things
...
this is so real
besides
code for a friendddd irl. Is cash in person also not allowed?
!rules paid
so yea
😭
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
Example: Politician
-3
T_T
You I guess, what's the big deal?
welp you saw the rules
unfortunately it's not allowed here
why're you minimodding 😭 🙏
Well ig u r all in university 💀
why not
it's patronizing
I learn C and python but im 14
i dont think telling people what the rules are is minimodding
Wow nice
@alpine cipher find an irl friend! That prof can't possibly be THAT much of an ass 😢
@opaque cosmos are you serious about co ordinate to linear length project
I seen a 12 year old boy making physics engine and now hes going to make an OS ✌️
no, i'd be violating the rules here if I was
Brilliant minds ngl 😭🔥
Breaks my motivation lol
😭🙏
Your worth is not dictated by others' achievements
@alpine cipher have you tried... freelancing your professor? ballsy move, maybe it'll work?
At some point yes
I still could do better
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
this mentality is how you completely ruin your mental health and actually do worse
certificate after 2 months of learning ?
Okay true i always forgot im young , i just seen kids doing better at my age
yeah in some time we will get that but i got no marks for that 😂😂
Stop paying attention to other people
Does your project have to be graphical Env or not ?
not necessarily
hi
look at videos about code you don't understand and seek the professor first chance you get. Email them if they allow email
hello! I go now byee 
Make a timer.
Make a banking CLI
make a Temperature converter
make a bill splitter
make a number guesser
i already made who will buy
ylal talking about python?
She needs a project due tomorrow with she can earn cash
it's not tomorrow i got few days may be 3 or 4
Then you have a lot of time
i'd be frank with you, i'm not buying it, neither your program, nor the story
tell me serious ways i can get clients will i actually went on face and post on some groups and also one thing happened 😁😁
Me too yk, just the fact is even netflix doesnt worth nothing
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
!rule 9 yeah you are very close to the line here
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
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
Oh makes more sense
Making you aware of a rule is rude?
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
there is a marketplace channel in the practical python discord where they do allow you to hire/ask for clients
Please open a help thread: #❓|how-to-get-help
Certificate after 2 months is something i never heard of.
And one project is not the end of the world
wth is happening here
i think you would have better chances there
where are you from will tell you the institute name
Ah I wanna repeat something that I said 4 hours before.
-# it's always afternoon somewhere in the world
true
I would say I do that when I don't like someone's advice to say you don't have qualifications to give this advice.
🤣
i mean sure, i dont think i have much of a qualification
why challenge the qualifications when you can challenge the advice itself
Well, it’s often because you can’t challenge the advice
Got to challenge something!
Yeah
Had this happen to me on here before
Someone asking me for my qualifications when I was discussing microrepo vs monorepo architecture
well?
monorepo 👍🏼 /hj
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
eh, not worth debating with these kind of people
👋
I tend to prefer monorepo if it’s done well
If it’s done horribly then everyone suffers for it
You can always say I'm pretty dumb and uneducated but then blow their mind with knowledge
i think when discussing tradeoffs and opinions, experience matters a lot, and it's fair to ask about how much you've worked with either or both of the options being discussed.
"mono-repos are much better!" "have you used them?" "No, but I have micro-services now and I hate them"
👋
Actually - I think both have their problems for different reasons - but I was chatting with someone who was convinced microrepos were always better
right, and in discussions like that, finding out about each other's experiences can be really helpful.
👋
Lots of waving
👋
Fair enough - I personally prefer just to have a discussion than to give away my life story. I’d rather just not have a discussion in the first place if it comes to that
<@&831776746206265384>
Is there any value is analyzing data from discord servers?
I mean it depends on what you want to do bro, do u want to derive any sort of insights?
!cpban 1364854731620745248
:incoming_envelope: :ok_hand: applied ban to @acoustic charm until <t:1767796809:f> (4 days).
I am once again asking for a bot that deletes all messages with 4 attachments each called IMG_####.jpg
Yeah I'm trying to find some use out of data I have. I have data on channel-specific mutes, bans, text-mutes and flags and could probably record some more data, but idk what to look at if im trying to create something out of the data
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
these messages seem really easy to notice and remove
given that you need a selfbot to send image attachments in this channel, right?
wait are you saying it's easy to notice and remove manually and thus doesn't need a bot, or it's easy to notice and remove automatically and should thus be done?
just send links
I see
I honestly think discord handles 'uploading to cdn' and 'attaching to message' as two distinct actions
Then now's a good time to think about what kind of stats would actually be useful
Programming is a nice thing to know, but it's as much if not more important to learn how to figure out what's useful
the latter. It would be easy to automate the removal.
Thats why I'm asking here because it seems like python is ideal for data analysis and if i have something cool to work with I'll stick with it and learn more python along the way
Great u have the fields for your data, now try to pick a question you can answer from the data for example something like "What channels in your server tend to have the most mutes".
yeah, I agree
possibly also give the user some 'captcha' role where the only channel they have access to is a mod-only appeals channel
Hmm thats golden, answering a question... interesting
pick up the pandas library in python it's the most used for data analysis
In that case, let's start by listing the raw data you are collecting
Are you collecting message counts ? Mute events ? Ban events ? Etc.
Then, after seeing what you have, try to see what you / users / people who want to use your bot would like to see
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
👋
you'd need both moral reasoning behind that and statistical evidence that it results in less "bad behaviour"
Or atleast gauging how often repeat offenses occur
Hmm true
How does one measure if someone started behaving?
Maybe have several systems predicting users future crimes and voting on it?
3 seems like a good number, in case of ties
I also like the number 3
🤨 ayo we got predpol in discord before gta6
Consensus relies on the community wanting to be good
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?
What do you do if there's one disagreement in the minority? What would you do with that report?
Interesting. I already have a table with these fields id | action_type | target_discord_snowflake | executor_discord_snowflake | guild_id | channel_id | reason | metadata | created_at
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
Im interested in share mi knowledge ad recieve the one from others in python
Am i missing any other data I should store?
I've already decided to track timeout
Gemini after destryoing my week old script:
"👈✌️😌🦅"
!compban 1218853678329495644
:incoming_envelope: :ok_hand: applied ban to @leaden hamlet until <t:1767798358:f> (4 days).
they out there raiding security servers man
another mrbeast crypto scam?
Is tablet good for learning coding?
it'll be a bit hard
but you can
I don't have computer, and building computer, or buying a laptop is much expensive for me
use a laptop or PC
you definitely want an actual computer
when in doubt, use a raspberry pi, you can get those for cheap
It is so expensive
you can install termux
and connect a keyboard to your tablet
it's a start
Better than a phone, yes, but you'll still be limited by the platform. Typing might be a bit hard without a keyboard and, depending on the OS, the software available could also be limiting.
only works if it's an android tablet
oh yes
i assumed android
which I doubt because ironically most people who have a tablet but not enough money for anything better, have an iPad
ime
Yeah i mean, i know a tablet is redmi pad 8 pro. Has snapDragon 8 elite chip. Compared to laptop it's cheap
ooh, redmi is Android
you can install termux
(please from f-droid and not google play)
Yeah, i know but, can i root it after, and can i install desktop os?
Is it possible?
I still recommend a raspberry pi for more serious projects (good luck hosting a web server on your laptop)
Yesn't? It depends. You could probably get some form of desktop Linux on the thing with some work.
I'd assume so, but you probably a) need a PC for that and b) it's risky and not guaranteed to work
and c) you either get all your android apps, or a desktop environment, probably never both
What's the limitation, of what i can do in desktop, that i can't do in tablet (android)
It's easier to list all the things you can do on android
you can only use features Termux or Termux-API exposes
hey guys im new here to coding in general im thinking about learning python
you can only use CLI editors unless you setup VNC which takes long and doesn't really work well
good idea. you will like it.
yes i was just hoping if i get any help from someone in this server
Well i use neovim on my current android, and i love it. I have configured some pluging, and it looks nearly as vs code
Why is my pyinstall executable so bloated because my .py file is 46kb but executable is 31.64mb
!res general
Have you looked at our resources yet? Some common suggestions here for starting are Automate the Boring Stuff with Python and Harvard's CS50P course.
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Because PyInstaller ships a Python interpreter alongside your actual code. This is how PyInstaller is able to bundle your app into an executable.
U can increase it by extracting one
Why would I increase it?
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.
What is AV?
An antivirus.
And what are cons of Nuitka
I heavily recommend C# if you 'just' need an executable
It's actually not too hard
guys
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.
Do you have some time to talk about our savior, Rust BTW?
The python community ignored me .... TwT
i can help you
how does it work?
in one message, please 😬
How do I know which off-topic forum to ask a Javascript question in? (Looking for a guru)
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.. 😥 )
sounds reasonable enough
yep
btw
I do need help for OOL
(Object oriented Lang)
basically just classes i need to learn
do you have a specific question?
About Javascript?
How can I make this pathfinder not be stuck at walls https://github.com/TuxWarez/Pathfinder/blob/main/distance.py
and with 0-2 you can do the cute mod trick 😌
Something that I have been thinking about is adding depth like in chess bots where it looks multiple moves in the future
globals all over 🥴
It doesnt work if I dont put global
no
I don't know why but the only fix is global keyword
Which hasn't been causing troubles
we can explain global to you if you like
it's probably fine for now, but it's probably worth learning why it's a bad idea long term
you (greedily) try to take a step in whatever direction would produce the shortest point to point distance, and this gets you stuck at a wall?
Yes
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
What is bfs
breadth first search
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
afaict it's not quite the kind of depth you need
i see there is an enemy?
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
I calculated it anyways and it would be so slow
Well I know that, but how do I make it work
Yes
Can you explain it to me
highly likely lol
do you have a specific question
creating custom objects that behave how you want
could you go into more detail please
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
########
are you familiar with types like list, int, and dict?
yep
classes are how you make custom types in python. so you can make your own objects that behave how you want
something like functions?
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 @)
not really. classes can have functions associated with them, which are called methods, though
(making diagrams on a phone was a mistake)
essentially the same way you use any built-in type. you create it, you do things to it with its methods, etc
(im totally new to python OOP)
but you have used things like lists, right?
yes
are you following a specific resource?
w3schools is a bad resource for Python
!res general
We generally recommend Automate the Boring Stuff and A Byte of Python
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
automate the boring stuff doesn't teach oop, but a byte of python does
btw
im going for more of a user-friendly ui
but ill try
oh that make thing easy for me
whats self?
in which context did you see it ?
I still dont understand it
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
self refers to the instance that you called the method on
so self is the class?
The instance of a class
so like a action?
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
I think that self refers to the instance of the class that you just created like inst in the previous example
oh so self is the actual product?
the idea or how to write code that does it?
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
In my mind I picture it like that
heh.. whats init...
(dunder)
The idea
Its the initializer method of a class.Every class has one of it
__init__ is the code that gets run when the object is first created.
the constructor
right
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
I mean idk what even is monorepo or microrepo
my point was that there are discussions where it can be helpful to know the person's experience. It's easy for people to have opinions. How do you decide whether they are right or not?
._. oh I replied to wrong message
Hello devs!
Question, apart from basedpyright, do you also use mypy?
Or is the linter + the type system sufficient enough
I just use whatever type checker pycharm is using to tell me that my code is wrong.
Astral's ty will probably become the most popular type checker once it's "ready"
whenever Astral makes something, it quickly becomes the most popular tool for that thing.
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
Isn't Ty already released?
it's alpha
Beta apparently
beta? not sure!
Oh
That's just what they have here
Let's use Ruff and UV till now
0.0.8, beta
Can start with understanding the principles of classes and objects (Object oriented programming)
How many members here ?
at least 3
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)
I mean you should join a dedicated discord server for it.
Sadly all of the Javascript servers suck
The Programmer Hangout The Coding Den
Devcord is also a good server for web development
I mean they don't
the topic is "everyday problems and intelligent solutions"
If you're expecting a response in a minute it's honesty not possible.
Couldn't find "The Coding Den"
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?
When you don't see posts of responses for months or years, then a server sucks....
It won't let me join - strange because I have never been a member there
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?
Probably banned.
But I have never been on that server
off-topic channels specifically have no category, so they will have random posts in them.
So does that make them a bad place to post?
maybe not. They are for posts that are not on-topic in any other channel, so they could be anything.
There are good resources here
!res
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
tysm
I just want a Javascript guru to review something - I kniw it's a stretch here, but there are so many smart pwople on this server
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.
True, I just wasn't sure where to post. Well, if any JS gururs are listening, I I will try in logs-are-people-too
I had this problem of finding a good to do list maker.U can use text to speech converter and let the code make a to do list with reminders and more.Imo ofc
is it possible to add any unique name or id to addTrack of peerConnection of webRTC?

Yolo is a computer vision model
For is loop colled for loop
what course are you watching?
harvards c50's actually
maybe i missed it
they do explain for loops in cs50
wait lemme rewatch
check if you didn't accidentally skip a day, or something?
Yep they did...
"One new thing in a day keeps the anxiety away!"
Does anyone know about "anvpy"?
What is that?
What is anvpy?
I am not getting it maybe because I am new to python
yea mb guys
Me too New
Where did you see or learn about anvpy?
In Google play there is a app called anvpy
they are for loops
Python android builder
Yup...
First time I heard about it. Things I've heard mentioned here are Acode, Termux and PyDroid
Maybe it's a new tool i think
Yes
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
anyone here does PyTorch ?
always ask your actual question. don't ask to ask.
Having no friend is better than having fair weather friends
.topic
Suggest more topics here!
decorators.
Decorators are insane
Logic
What's 1,2
🤔
it means two people had done the
reaction
Could anyone recommend how to start android development using python am confused ?
Python isn't widely used for that
you may want to look into Kotlin which seems to have a better ecosystem for android development
But I saw many apps and games prototypes made with python
it is possible, just not very common
In the samples section of "anvpy"
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?
Anvpy looks very new and not well tested. You are free to experiment and see how to use it to build Android apps but we think its uncommon and unproven that it will work. Consider learning Flutter or React Native or Kotlin for Android development for a more popular and supported approach.
apparently Swift also works on android
What doesn't run on android bruh
Oo. Thanks i thought running python locally on android will minimize server cost thats why
Maybe i should ask "anvpy" developer once
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
yes you can
How
pip installs packages
On android ?
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
But you need whatever emulator first
kivy is pretty solid, I've made tons of apps with it, even did some design
use buildozer, the process is long but it's worth it
kivy is easy to use too
Do you know about anvpy, maybe it's a alternative to it i think
never heard of it
I recommend kivy for Android development
It's in Google play
Have you tried Acode or PyDroid yet?
@vagrant acorn pydroid is solid, use it
Yes pydroid I tried but I didn't see any option to create standalone .apk package fromthe samples section
It just runs there
that's how it's supposed to run
if you wanna make android apps use kivy to make the app and buildozer to build it
Hey people
What takes someone from basic understanding of python to intermediate with python?
it depends...
I think we need to get linux for this
Which area of programming are you working in?
Ok we can also do it in colab
or that
IMO when the stop using hacky solutions to do a task with a built in solution.
Well I just got done with a 12 hour YouTube course by brooded, just to understand the basics, but I want to get into data science
only way to get APKs
!res
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
I think it's a kinda project not a stable way for app development
theres alot of stuff on the resources page that can help you aswell
My autocorrect messed me up I ment to say brocode
Thank you
Oh, but in "anvpy" i build the app in seconds. Maybe i should study on it.
share your code repo of what you made with it. I'm curious if its any better
No i just copied a sample code in "anvpy" app and build .apk with it
That is great, if i were you i would start project based learning approach. Make a projetc proposal (start small) in the data science area and start buildind. Dont forget to use git.
What is the point of git I see alot of videos and people talk about it i know people publish code there but i dont fully understand what its for other then sharing code
it tracks different versions of your code and lets multiple people work on the code together
sorry to interrupt, but why do you want to use python libraries at the an android app ? Is it embedded LLM's?
This was also very helpful thankyou it reaffirmed the route I wanted to go down
No i have a telegram bot automation project using python and inwant it to make it an app without relying on servers
Interesting
I’ll have to learn how to use that
Is it possible to only give access to certain people?
That will depend on the platform you're hosting the Git repository on, but usually yes, there's such a thing as "private repositories".
I have a friend that’s getting into python and we wanted to work on something together and we didn’t know if it was possible so that’s great news
Source control for your code is a HUGE feature you'll want to learn. There will be times where you will change your code, or lose some code, and really wish you had saved an older version of it. Added bonus you can set it up so that other people can look at / help you on as well, and bonus bonus, you can set up automatic testing and building as well.
take a look at thishttps://docs.python.org/3.14/using/android.html.
That would be very helpful rn honestly 😂, I built a little program that could take in a article and count how many times each word was used, and I deleted it so now I have to remake it.
Although I made most of it with ai last time so now I get the chance to make it fully myself
Git its a versioning tool that allows you make check point at your projetc. Further it can be used with other platforms as github ou gitlabs to work with peers without having conflics.
are django models used so the migrate command understands what needs to be added to the schema?
Yes, but I think that's sort of the wrong direction to think about things. You make models because you want to store data in the database. The makemigrations command then sets up migrations to convert them into actual tables in the database, since the database doesn't understand Python
Hey guys i just finished chapter 6 of automating boring stuff in python what should i build to practice all those
okay, just trying to grasp the idea better
To be pedantic, the migrate command only looks at migrations, it doesn't look at models. makemigrations is what looks at models.
oh there will be conflicts
You understood what i meant kk. You can solve then before commiting kkk
I know what you meant, it's just almost the opposite of what you wrote :P
with more naive sharing someone else can easily just clobber your stuff without thinking
q.choice_set.create im kinda confused what im looking at here
getting conflicts in such a case is a great feature :)
sure it is :). As i was explaining to someone that just started the jorney at programming, i jumped the process and present only the final solution...
Hey guys i just finished chapter 6 of automating boring stuff in python what should i build to practice all those
factory function, maybe?
i dont even know lol
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
.choice_set is automatically generated as the set of choices for which question is q
Don't remember the create bit tho.
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)
is this orm stuff?
!d classmethod
@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...
could be - its about databases
ive seen class.method but not class.method.whateverthisis
foo.bar.baz in the general sense is just
temp= foo.bar
temp.baz
There will be more complex chaining cases in the orm later IIRC
we have namespaces at home
namespaces at home:
ive not once used decorators so makes sense ive never seen this
I'm surprised you've never seen people do like py s=s.strip().split(',') or similar
never seen them chained together
decorators on their own aren't weird, it's pretty simple syntax sugar
but you can do a lot with it
do you know what they are useful for?
not really
if not maybe you're missing out
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 
it's hard to know there was reason to use something if you don't know what it does :P
i guess yeah
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
tl;dr about the syntax sugar
# Given
def deco(function):
...
# this
@deco
def fun(...): ...
# is equivalent to
def _temp(...): ...
fun = deco(_temp)
wonder what that @ symbol does
if i could post a terrified look gif right now i would
that's kinda all there is to it
True but that's irrelevant and/or negligible in many usecases.
radical
also im getting better at touch typing
general misconception, there are some languages that are faster at some things, but most of the time you're waiting on user input or bandwidth or the data so it's very rarely an issue, and when it is an issue, someone makes a library that does that thing fast.
but it turns out you can do a lot of fun stuff with it
hitting letters like p, q and b is so weird tho
oh ok
is coding games in python efficient then
Does a variables exist outside a for loop
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
like, can a variable created inside a for loop be accessed outside it? yes, but better not to rely on that.
Better not rely on it how?
usually picking a faster language can win you a constant factor in performance, which may or may not matter depending on the circumstances
if the for loop doesn't run for at least one iteration, the variable won't be defined and you'll get a NameError
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
I remember reading a book that days it being fast usually depends on computer but algorithm efficiency doesn't vary much
i kinda am at CLASS and i dont think there are topics beyond that or are there?
Oh i get it,thanks
there are always new topics and new concepts
there are many topics beyond that. the question is whether you're interested in them, and/or whether they will be useful to you.
for i in range(10):
integer = i
print(integer)
``` wow i didnt know that worked
as in on every update?
do u mean the subbranches?
idk what you mean by "subbranches"
like ai ds is a subranch game dev web dev etc
the core language changes slowly, but there are so many python things out there
there is always more to learn if you want or need to
The core language and standard library is possible to learn in full, tho it's probably not practical to do so and you should just learn the slice that's relevant to you.
But Python is one of the vastest languages around in terms of domains, so there is just too much to learn outside of the stdlib.
ok. I don't (just) mean that.
there are many more things to learn even in the core language, beyond classes. classes are taught/learnt fairly early, in the grand scheme of things.
you will never learn everything, and you don't need to
The core language is still surprisingly extensive tho
it is
a lambda is just a way to create small, one-expression, unnamed functions.
ohhh
and lambda itself is an expression
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...
The actual semantics of async generators are pretty horrific, for example.
!d tabnanny.NannyNag
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).
I've implemented the damn thing and still couldn't explain it without referring to the code.
ic
Hey guys how do i find real problems for my level to solve and improve myself
I kinda just get those moments of "mmm i could probably do this with python" whenever a task that seems automatable pops into my head
like something involving spreadsheets or smt
what is your level? and what do you consider "real" problems?
I mean ye,
But you see i am a beginner so ,
Im a total beginner
Oh then you probably wont be able to do much except for just
keep learning
I used to use StackExchange's Code Review site to get ideas. You can even add the [beginner] tag to the search to see simpler projects.
im in that stage too
Ye you are right
You can use that to learn. Think of something you could do with python and try replicating it with the help of online resources
I will use this
Hmm i will try
yoo anyone dm me if u wana make a python aimbot with me
!rule 5
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
This server does not allow discussions about TOS-breaking activities.
!rules
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.
I mean, do you know how machine learning or AI works? Data Science? Those are huge python fields/concepts and I promise, basic python doesn't teach it. It's just the entryway. There's so much math.
anybody here need an extra coder on a project? i'm new and sort of floundering for direction.
what is it? you didn't even explain what it is
looks like spam
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.
The link probably could do without the ref tail
Please don't advertise/spread your referral code here
there are so many community partners, sponsors, exciting rewards
oops wrong ping
yeah no this seems like an ad/promo
you can join without referral id also
should've started with that
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
the website isn't even obvious what it's supposed to do
any indian here ??
many such cases
half the server
can somebody explain me why i i did not remember the logic behind the code stuf of that
Because you aren't asking enough questions?
Is there any recent news on making it easier to create a single executable to distribute applications?
Nope.
Perhaps
Do you have any more information?
Nah
@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?
the commands are the same for every OS and you don't need there to be a lot of tutorials because it's easier to use.
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
I don't even care that it's "fast". the API is much more smooth than creating venvs and activating them.
there are more benefits, though some of them are also downsides.
uv does not use virtual environments?
it's not a bit faster, it's much faster, so much so that you can use it for things where you can't use pip.
it does, but some of the time they're implementation details.
Umm hello lads
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
some of us
✌️💔
Ok
It forces you to use them
uv combines a lot of very common tasks into a single tool. It manages environments and packages and aspects of packaging and distribution. Especially considering the somewhat fragmented state of the Python packaging ecosystem, a single convenient tool is appreciated.
Sup
Sorry🙏
You’ve hit use cases where pip is too slow?
I mean, Poetry sure, but pip?
this is also a downside. recommendations to "use uv" can be confusing if you don't specify exactly which parts of uv to use, and how.
Yes
yes, but why does that matter?
what I mean is that uv has uvx which makes a virtualenv and installs packages fast enough that i can run tools directly without thinking about the creation and installation step
because I dont want to download a name sniped package thats a virus
yes, uv uses pypi, where else would it get packages?
You don’t have a private index at $WORK?
idk, im sure there are other sites that are less popular that host python packages
Are you currently using any of them?
no
Oh
uv uses pypi by default, and can use other indexes, just like pip
i spoke too quickly
How do you avoid this today?
If matplotlib somehow loses their name on pypi I hope that someone notices before I install it 🙃
i thought @tight tree was afraid that uv used a new index that would be more susceptible to malware
^
Ah
cooldowns are a good idea: https://blog.yossarian.net/2025/11/21/We-should-all-be-using-dependency-cooldowns
🙏
Good timezone
I do wish there was a nice solution for sandboxing or restricting individual packages.. maybe an eventual opportunity with sandboxing subinterpreters?
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
Main thing I want is some trust heuristics that I could define locally
Does anyone do this?
Isn't pip used to install packages?
For... good question, really
Not that I recall
Python is named after a snake
yes, in fact "pip" stands for "pip installs packages"
Obviously
PSF's own index is already sketchy enough tbh
Python is named after Monty Python
It is not actually 🤓
Misinformation from the CIA ofc. 😆
PSF has a mirror?
Yh cuz I installed flask
🤣 nerd
You what?
Are you talking about defining that a specific package should not be allowed to access the filesystem, for example?
Yes exactly
They're the ones maintaining the current PyPi
Well
A mix of PSF staff, contractors, etc
But ultimately the Warehouse belongs to them
I understand why it's hard/impossible, just that it's something I'd love
https://docs.astral.sh/uv/concepts/resolution/#dependency-cooldowns
Calendar units such as months and years are not allowed since they are inherently inconsistent lengths.
Based
i see, you didn't mean mirror, you meant the package index
That’s not “good enough” though, is it?
Whatever you ran could just rm-rf the sandbox and your PC along with it.
You need to sandbox the entire OS.
If we’re getting technical, Warehouse is owned by the PyPA team
You first need to install the package, which can run arbitrary code
Right?
I dunno, a sandboxed subinterpreters or perhaps a wasm container that's seamlessly imported?
to me, this seems needlessly pedantic. the cooldown isn't a precise duration anyway, just a guess at how long you want security researchers to have access to the package before you install it.
There is a hot standby for PyPI, but it’s not an active mirror.
I gotchu twin /j
Allowing users to pick their own durations is pedantic?
Sorry, it's just a minor grievance of mine with @edgy kraken. It often uses m to mean "month", so !mute someone 30m means 30 months or something like that. (and it just expands to 30 days, which isn't terribly useful)
no, refusing "1 month" is pedantic.
!mute @spice hill 30m
:x: @spice hill, you may not timeout someone with an equal or higher top role.
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.
Oh. I’m on mobile and I missed that part.
Yeah that’s awkward.
I like it, but I am a pedant.
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)
it's ok, it's easy enough to specify days. I would have simply said, "durations must be specified in hours, days, or weeks" and left it at that.
true
Guys, is there anyway I get into Django and pretty much know nothing about HTML and CSS?
How much Python do you know?
Advanced. I’ve been coding python for four years now
But I never got into web development
start with the django tutorial at djangoproject.com
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
For HTML/CSS I'd recommend https://web.dev/learn/ (HTML, CSS, Responsive Design, Accessibiliity, Forms) for tutorials and MDN for reference
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?
realpython has some pretty good tutoprials
https://realpython.com/tutorials/django/
once u get familiar with css you'll find something called CSS frameworks which is pre-written CSS that you can use, modify without having to do everything from scratch
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
is it complete yet?
you have to earn your sleep by being productive
||jk ofc, go eep||
hell naw not complete!
on that grind
Is it a good idea to use that?
Doesn’t this limit you?
Or your code?
the irony being that a lack of sleep is probably the worst thing you can do to your productivity
have you learned about djikstra or bfs?
only a bit abt bfs
No it makes stuff a lot easier because you can still modify the css plus most css frameworks alr look nice
given a grid of roads with start/end grid points and speed limits, find the fastest path between your house and mcdonalds
Only thing i got to help me is an abstracted version of A* (pseudo code)
yknow thats not a bad idea but i consider speed limits more like a suggestion
and that might be slow as hell since my nearest mcdonalds is..30-35min away
Don't seduce me, I don't have my driver's license yet
Me neither
Still got a few years 😭
.topic
I dont want to be cooked when I get into comp sci(so in about.. a year)
Keeping my job
And thereby not dying
america?
for some reason they keep making computers worse and programming lets you make computers better and fun
it is fun
huh?
the other way around
Icl this A* alg looks like complete gibberish at 1am..
Computers are getting better. It's Windows and consumer software that is getting worse.
That's why I use Linux and a terminal with VIM only duh
(thats a joke i use windows)
Ouch:
>>> "a".splitlines()
['a']
>>> "".splitlines()
[]
I meant more in the sense of more and more menial things require computers so they're not cool and fun things anymore
Good 2026 to all
maybe it will be better in the morning
did you expect [""]?
Might take on a diff project this seems a bit boring
Trying to draw railroad diagrams in the terminal:
╭────────╮
│foo │
│longer │
│short │
╰────────╯
although I can't come up with anything fun
A snake game?
what project are you doing that needs A*?
like none I just cant come up with anythin
ah
OTOH, I use macos and a terminal and neovim
Kind of tired of games after frying my brain with miniimax
and optimizations!
Draw fractals?
(note that i didnt even implement it correctly in python and somehow only implemented it correctly in C++)
sounds like you're not bad at maths then :)
not exactly since the only "optimization" I've done was alphabeta pruning 😭
you are always building on top of abstractions. You can use a CSS framework now to save yourself some learning, and move away from it later if you want to.
not at a high enough level of maths to understand fractals..
That's the cool thing. You dony need to bea
Imagine using abstractions
I use magnets to manually flip the bits on my hard drive to code
huh 😭
Implementing mandlebrot sets, for instance, doesn't require knowing advanced math
i would say to learn about bfs, then djikstra first. they are essentially simpler versions of A*
I know but i dont really have any use for either of them
That looks like pretty scary math to me 
they can all be used for pathfinding
Yea but where would I even need it :P
Start here, if you want; https://en.wikipedia.org/wiki/Koch_snowflake
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....
there are many things that don't seem to be useful at first, but may become useful later on
Seems useless at the moment considering I'll probably never use them in my life
one might be surprised
Actually, start here: https://python-with-science.readthedocs.io/en/latest/koch_fractal/koch_fractal.html
Got flashbanged and 1st thing i saw was geometry..
why are you learning programming?
The other reason to learn something is; it builds your experience and knowledge, which will help you with more advanced things
Mainly to be a bit better prepared for the next few years
from turtle import *
😔
for...what?
what do you want to do with programming after that?
Highschool 😭
That's how most turtle tutorials are.
Uni and get a job(disappointing i know)
