#π python starter
688 messages Β· Page 1 of 1 (latest)
@red trench
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Also I'm on mobile, so someone please give me a mobile app to use the code
!resources page has lots of free tutorials/guides
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
I'd suggest using termux, but you'd have to get comfartable with a terminal
What's a terminal?
Whatever man, as long if it's easy, I hate getting links thrown at my face
think of it as a text only interface
Sounds simple
instead of your gui apps, you type in something, it spits out back some text
Like a conversation with an ai?
Like commands in Minecraft
yea
oh and don't install it from the play store, it's an outdated version
Oh lol
you can grab the fdroid app and install it from there, or just grab the termux apk itself
search termux on there, download and install, it'll ask for third party app access
also note for the future, not everyone asks you to install stuff with good intentions, so double check whatever they send for legitimacy
Ok thanks
You can also try pydriod3
Its faster than termux
it's limited in terms of external packages
At what cost?
Uhm this
Oh lol idk what that is
modules others made that you can use so you don't have to write everything from scratch
Termux is very versatile
What is modules for
Idk what that is fr
like to build a building, you buy the cement bricks and stuff right? and then put them together
the modules are the cement and bricks
Oh ok
that you put together to make something
Oh
Modules are function will skip you coding for that same function
Oh shortcuts then?
yeah they're starting from scratch
Well the younger you start the better
Age has to something to do with programming?
not really
But I know how to code machine language
Confused but I like it
I make cpu In Minecraft
they said that you seem young and new, not that it's bad or affetcs how you learn
Um still haven't found what termux lol any 1?
Hmm
termux: termux
Oh
You can always try using pydriod3
Its better as ide
I personally don't like nano lmao
micro.
A?

in hindsight yea, use pydroid to get started, switch to termux once you need it's functionality
Rip termux is what I'm getting started at now
Am I cooked?
nah either is fine
What if the line is longer than the screen?
D:
Am I fried?
Just install pydriod3 for now lmfao
Where please
Google play store
better than nano, auto scrolls
Yos
integrated development environment
Ide is a thing where you edit code
buncha fancy tools to help you run
Oh so this what I need?
Ofc
Ok downloading
Leme se 
also has plugin support iirc but I use micro to edit plaintext and nvim for coding so haven't really looked into configuring it
I asking cus I wanna know if it's possible to code only using termux
Got no pc
I did for about a year
vim still exists, so nothing's really stopping you from coding in just termux
for rust you'll need to proot into linux, but python, perl, c, c++, js worked fine
Its nice if I can se if I get typo error or syntax error before I run it
I always have typo errors
That's my enemy
I had neovim with a lot of plugins run smoothly on a tablet with 2 gigs of ram
Woah
you should be able to install vscode, if you want a more proper environment that's less of a hassle to setup
On phone?
Someone have the time to explain all these options meanings?
I tried, unsably slow, maybe would be better with more than 2 gigs of ram but idk
Just answer it
pick the first option for now, most likely what you'll be doing
I have no idea what's a web program
Web program
Then dont enter it
Ye?
not really the web part as much as the terminal part
Like websites?
yea
Kinda
Go
Ok
oh damn
yea I used it for a bit
But it's bash
before ditching it for termux
I made it boys officially did it fr
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
dw it has categoric seperation
Tbh I didn't read anny documentation
I just learn python to simulate a CPU architecture was in my mind
But I end up learning advance of it
@red trench hmm what your first motive on learning python?
adafruit is for interfacing with sensors and microcontrollers. It shouldn't be all that relevant to you
I wanna do a little of making a ai fr
That impersonates me
Start on statistics
Ok
Om
I remember a good site
Forgot it's name
Its free and it give very high definition explanation
if you prefer it sure, but online resources are a lot more helpful
True
This just says automate boring stuff I'm not going for something out of my way fr
I'm too dumb for that
I learn only using chatGPT,google, stack overflow,GitHub
the same book, for free,online
if you're interested in machine learning https://nnfs.io/
Sus link
It's showing stuff only you can do on PC what do I do
Am I cooked
no, you can pick projects you can do on mobile
It'll walk you through the relevant math behind machine learning, while giving you practice in what matters. It won't bring you up to date on cutting edge machine learning, but it'll give you a good basis.
Where please @echo stone
There?
that is what @ yariazen is talking about
machine learning is a subcategory of ai
Oh
Ah machine learning is the more accurate term for what is commonly refered to as AI. Many people who work in the field prefer to refer to it as machine learning because its a more accurate description.
Scripting
do whatever you want, but building up to machine learning will take a long time
Script what kinds of things
I have no idea what all the other categories do
then just learn the basics of python
and dive into each category a bit
see what you like
stick with it if it suits you
otherwise try something different
He said scripting
What can I do with scripting
Roblox scripting?
Wouldn't that be a language called lua
that's against roblex TOS, so no
Oh ok
that's what native roblox uses
Luau is the other
Lua
Hi I seen you have suggested trying scripting with python, what path does it lead me to and how can I learn what to do with it
Well I personally use programinging for fun
Also since I can code I make scripts to easy my works
scripting is a wide umbrella of things, generally speaking, scripting automates things
Have a look on my git
Oh
My first project is very simple
GitHub?
Fr
Ok can I use scripting to automate me a bot to message me on discord every 5 minutes?
you can
Lmfao
*with a bot account, against tos to use botting on a normal account
It's harmless so it wouldn't be tos breaking right
I have my disc bot there
So obv use my right?
Cuz idk what bot acc is
@dapper stag is a bot account
Oh
Wym normal account
accounts like yours or mine
Oh
In what way did you mean against tos to use botting on a normal account
Evil spam or just even tryna learn python
trying to learn python would also count
It means nah on making ur disc acc automated
Wait huh
because determining what is and isn't done with bad intentions is very very hard
Oh
Dawg what can I do that's not tos on discord π
you can just create a bot
but let's not dive too far, that's a tad complex
Ok sounds safer
wdym π
U se my bot

I use web hook cus it's cool
mans just starting he hasn't even done hello world how is an asynchronous api interacting bot not hard
I didn't start at hello world tbh
Lol I did hello world on lua inside Roblox studio
point is, he's new, a discord bot is not what you learn python with
you learn async programming with a discord bot
But not on python so maybe I'm dumb for that
no, you're just starting
Is async like a module?
it's a concept
Disc bot is the first ever thing I messed with programing
It sounds like something I enable on fps games to boost my performance
Subroutine is not simple
so many others do, doesn't make it easy
Guys calm down focus on me fr fr
Lol
Well async will call onother thread
honestly just ^ for now
@red trench learn print function
Where is a place to learn it
Ain't it like
Ur ide
Print(hi)
Use string
"Iam a string"
Ohhh that
Iam_not
This isn't a bad place to start learning python
https://codecombat.com/
No
Put it inside the parenthesis
Ohhh
Ok
Print("parent")
Chat I'm smart
I did this long ago now I'm redoing it
Coding is truly a hard path
caps matter
if you really want a book this seems to be best suited to you,
skip chapter 2,
switch to termux when you hit chapter 11
(it isn't)
Yeah fr(depends on me)
Yeah
plain html is easier
But Everytime I stop doing a language I completely forget everything about the commands
it isn't with css and js in the mix
Or whatever their called
syntax?
Danm bro hooking me up
syntax is probably the word you're looking for
Html is just like a manual how you want it to be organized
to be fair, you didn't know the word syntax
π
Google humiliate me fr
and ^, knowing how to properly google for things is an underestimated skill
How do I properly Google an answer on syntax?
"properly" btw fr
you don't? you learn it from the documentation or a tutorial
dw about syntax, it'll just start flowing once you get acquainted with the language
this applies to everything
not just python
how good is your problem solving?
not like maths, like logical puzzles and stuff
Me 1/20000
πdanm bruh u smart fr
- are you able to solve problems?
- can you explain how you arrived at your solution?
Blud giving me homework
He wanna know your capabilities
Nah this homework
I'm cooked if I answer this yall
the second bit is the most important thing when it comes to programming, because you're essentially telling python(or your machine in general) how to solve a problem
What solution
just in general, if I gave you a problem would you be able to a) solve it, b) explain how you solved it step by step
Programing is just a problem solving
You find solution using the available resources
In coding words or English words
in english
Both
Ok what problems do I have
Learn programing
if you can explain it in english, coding it up is easy
Well make sense
say I ask you if a number is even
Owh
I'm just putting a hypothetical situation
Yeah @red trench do you know if the number is even?
no pressure
No
but you can tell correctly 100% of the time right?
Military time or like normal time u see on your phone
π
π
I'm still asking abt even numbers
You can solve it by making a look up table
Idk what your tryna sayyy
if I give any number, you don't have each number in your brain going even odd even odd
Where if 1 odd if 2 even ect
Nah this math
but you can say if any number is even or odd
Dont
WYM DONT
We are programer not loser
How you know it's odd or even.
Just answer
Then
print("can't idenfy what is even or odd yet")
do you understand what I'm asking you?
Wait how do I know what's odd or even
π
Formula ur own
that's what we're asking you
is 77 even or odd?
If u can y not?
Now answer
Nah it's odd
How?
Well what is irrelevant?
Nothing
a serious reply please?
I'm passing these exams
I am
this is not an exam π
Hold up I have Google I don't know what orient mean
RIP
Tbh, I'm not sure what kinda solution yall are expecting. Can't expect them to start talking about modular arithmetics
You guys want me to get familiar with python code
I'm not
not at all
What is that
set that aside for later
Ok
anyway, how did you say 77 is odd?
Lol
Randomly picked fr
ok lemme back up, what's the definition of even and odd
It's odd that you specifically mentioned 77
I just picked a random number since you didn't understand if I just said it generally
Or
DONT PUT THAT SOLUTION in their head
Wym look up table
π
Bro is this even python anymore
it never was, we're just attempting to give you an idea on how you should approach a problem
Oh that again
You must tell to the computer how to know how the 77 is odd
python
yall are actually trying to teach the theory of computing rn lol
I don't even if 77 is odd or not
Fr (what is that)
@balmy cliff :white_check_mark: Your 3.12 eval job has completed with return code 0.
38.5 38.0
but why? that's what I've been trying to get at
He can't formulate yet
How to solve a problem through computation. The idea is for a computer to solve a problem, you need an algorithm. And that algorithm is based in logic, the same logic you would use to solve the same problem.
Ohhh you meant in code
Not really
Bro I gotta do something fr
You can use the way how human solve it and convert the solution into script so computer can solve it insted of you
That's the goal of computer
to tell python how to solve a problem, you must a) need to know how to solve the problem yourself, b) know to break it down such that you can tell python how to, step by step
Nvm I was gonna say a button and it cost money to press but it leaves me with some change left but I have to script the computer into dividing change back
Guys I'm wild guessing
Bro β οΈπ
what is the definition of even and odd?
Hahha
On the binary level
My solution is Google
that works, just need the definition
Even I do use Google once I learnt what Google taught me I can remember and reuse it again on whatever problem I need to solve
I was about to say don't bring in asm, but no, you went lower
Ain't that what we all do
yep
We go through school and use what school taught us to use and do
You gotta learn somehow fr
Agreed (I don't wanna end up homeless without diploma)
back to this
definition
Danm
@red trench go get your friend google
Ok
I mean
If being honest
Definition of even is flat and smooth fr
That's what I always call it in some things
Idk what other solution u got
But that's how my human ahh life is
a serious answer please? we're trying to help, if you aren't co-operating, we can't help you
what's the mathematical definition of even?
Bro
Exactly
?
2 is even cus you can cut it in 2 and there will be no number
Like
A A A
^odd
A A
^ even
Google gave me that but idk how to explain it
Its correct
the important thing is you understand it
that you do right?
Fr
well its a mathematical concept, there's not a good explanation other than that's how we define even
Now let's go on programing
woah back down
Hellom
?
Is this a ai
Hi
I wanna learn the quantum physics
Bro
?
Its so broad
Wym
Like way too manny branch
I can teach you quantum mechanics if you want. I specialize in computational physics
._.
Your cool ngl sure in DM later
Learn quantum mechanics instead
@red trench go on your pydriod3
But the goal of asking you about the definition of even and odd, is that computers don't intrinsically know what is even or odd. You have to design an algorithm to determine that
Yes?
Bro you guys know too many big words
Put this
variable = "I am a string"
print(variable)
I think that's why I'm failing
Oh that
@red trench explain how that 2 line code works
You can name the variable or not idk I forgot
Put it on your pydriod3
Yes I did this before on lua
Bro
I have PTSD
And I live in a place dangerous
I wanna go home
What happen is the "=" assigning the variable named variable to have a value of string containing that word
@red trench focus on programing
Read
I'ma keep chilk
Yes
Wym
You can defeat PTSD by occupying your mind with other stuff
It's hard
But it right
So what happen is the "I am a string" is put in the variable named variable
And the print use the value of variable and show on the console
Now try to print your own text
It got pulled by print(variable) and placed it onto the computer
With different variable name
You can do math?
Nah
Fk
Bro
I mean 1+1?
Ye
What's the answer
Answer for what
1+1
.
..
2
Nah
@balmy cliff :white_check_mark: Your 3.12 eval job has completed with return code 0.
0b10
Its 10
Lmfao
Well the math on python is just similar on how you do math on real life
Like 1+1-1
But the Γ is *
+,-,/,*,//,%
I will archive this post, its nice (for newbies)
@red trench try to do math and print it
Like 1+1
Owh I have f-string hack
f"{1 + 1 = }" = "1 + 1 = 2"
You can use variable
I needed to have talk with someone to calm down
Wait what's that
Then !close
What does that
Close this
!close
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.