r/PythonLearning • u/NecessaryFalse1212 • Aug 28 '26
2nd post learning python
i learnt to use the math library any suggestions what can i use the lib for except for making calculator programs
r/PythonLearning • u/NecessaryFalse1212 • Aug 28 '26
i learnt to use the math library any suggestions what can i use the lib for except for making calculator programs
r/PythonLearning • u/ReleaseValuable4181 • Aug 28 '26
Hey, I recently made a small Discord server for people who like Python and want to learn it.
It’s mainly for beginners, but anyone learning Python is welcome. The idea is just to have a place where people can learn together, share what they’re working on, show off projects, and improve their Python skills along the way.
If you’re interested, just comment and I’ll send you the invite.
r/PythonLearning
•
u/shubham_555
•
Aug 28 '26
Last Post - https://www.reddit.com/r/PythonLearning/s/0Eqy1ApNWc
Github Repo Link - https://github.com/Dev-4-All/rock-paper-scissors.git
r/PythonLearning • u/No_Leather2449 • Aug 27 '26
this might sound really stupid but something I start debugging for like an hour (no frickin joke) because when looping through a list I create a variable that will soon be appened to a list with a similar name (usually differentiated with an s) I usually do this cuz i don't know what else to call them. Ex.
submission_dict = {}
submission_dicts.append(submission_dicts) #I accidentally tried to append the list to itself!So usually this happens a TON and I really hope you guys have some quality advice!
Also, please (if you can) provide some advice on general guidelines when deciding what to name a variable
Warm regards,
r/PythonLearning • u/Sea-Ad7805 • Aug 27 '26
In last week’s post we showed that a Python for-loop works through the Iterator Protocol.
This same protocol also enables values to be produced lazily.
In this new Lazy Evalution Example we show one sink reading values from five different sources:
source1: eagerly returns all values by list
source2: lazily by generator function using yield
source3: eagerly by list comprehension
source4: lazily by generator expression
source5: lazily by iterator protocol
The same for-loop consumes all five sources. The eager sources produce all values before the sink starts consuming them. In the lazy sources producer and consumer take turns:
produce → consume → produce → consume → …
where each value is produced only when the for-loop requests it.
Generator functions and generator expressions are concise, readable ways to create lazy iterables. The final source makes their underlying mechanism explicit:
iter() obtains an iterator.
next() requests the next value.
StopIteration signals that no values remain.
This clearly shows that generators achieve lazy iteration by implementing Python’s Iterator Protocol.
r/PythonLearning • u/DegreeInOverthinking • Aug 27 '26
13-in Macbook pro 2020, intel core i5
Serious question: this is my macbook. Bought in 2020. Will I still be able to use it for Python, Tableau, SQL, and Excel? This is for my Information Systems course for MBA. Thanks!
r/PythonLearning • u/Electronic-Bug-2618 • Aug 27 '26
Somebody knows how to compile python script once and run on all os? I had to do it for the frilance project, so i have to do it.
r/PythonLearning • u/Hopeful-Fig5405 • Aug 27 '26
Hi, I’m interested in cybersecurity, but I don’t want to start with networking, the OSI model, and all that just yet. First, I want to learn the Python programming language—is it a good choice? I’m thinking about taking the course on freeCodeCamp.org.
r/PythonLearning • u/Capable_Comedian_277 • Aug 27 '26
r/PythonLearning • u/NecessaryFalse1212 • Aug 26 '26
i have done this typecasting program which i have learnt from a bro code video and i think it's alr as i am still a beginner but if there is that can be fixed in this i am all ears
r/PythonLearning • u/SensitiveAd8150 • Aug 26 '26
Just to clarify, this is my first post and my English isn't very good (that's why I'm using a translator).
I've been learning Python and working on small projects, but now I want to take the next step. I have an idea for a program that runs an AI (Gemini, using its API) capable of managing apps, files, and folders—including creating, moving, copying, pasting, and deleting them. It will also automate background tasks, and you will be able to communicate with it just like any other AI.
Those are the basic functions, though I'll probably add more in the future. I would like to know how I could structure and approach a project of this scale
r/PythonLearning • u/crazyteachperson • Aug 26 '26
Recursions are really hard compared to loop
You guys give me some tips for this.🫡
r/PythonLearning • u/silentknight400 • Aug 26 '26
hey folks, i recently joined CS50 for python did the first lecture i pretty much understood everything. then i went to solve problems. i searched for few things before doing the problem via AI or python library. but i felt like i will forget it easily so, i decide next day i will search only in python library such that it should get sticked with me so that i could remember it better. but the thing is its taking me like an hour or two to complete final problems. so, is it normal or do you have any other better way to remember as compared to people around me i have good memory i can remember things better. if you guys please take ur time and drop your solution would be nice.
r/PythonLearning • u/Traditional_Dark5833 • Aug 26 '26
Hello I am learning Ml and Ai and I know python basic and python libraries like pandas, numpy, seaborn and matplot lib. I wanna build small projects to enhance my skills. What you guys would recommend me should I learn from YT to build project or go through documentation.
And also what should I start learning to make projects like detection system through cam and more.😀
I really need you guys opinion.
r/PythonLearning • u/Unfair-Stranger5140 • Aug 26 '26
Hello, so i got into coding with Claude and chat gpt and have been using it like this for a year now probably used it for ML-Model and such but to be honest i got no clue of the code and cant fix a bug or error without AI.
I dont want this anymore and want to actually learn coding so I am not dependent on AI anymore. I wanted to ask for some Advice what i could do, what project ? how do i start ? where do i start kinda overwhelmed right now.
I know the terms like if-statements what they do ect. But only in theory just a bit more complex and I am out dont understand the code at all.
r/PythonLearning • u/ProgramBrave718 • Aug 26 '26
When I look at the code i wrote 1 week ago .
I feel like I have written a foreign language.
r/PythonLearning • u/dry-elbows • Aug 26 '26
Need someone who actually knows Python and can teach it properly — beginner friendly, patient, explains things clearly.
💬 Comment your price per hour below
❌ Please comment, don't message — makes it easier to compare
r/PythonLearning • u/pycon_angola • Aug 26 '26
r/PythonLearning • u/SleepyLoverrr • Aug 26 '26
Okay now I have some info about python, I've practiced some fundamentals, now I need to get into projects because courses and just reading and a little practice on some exercises does not make me really good at it, where can I find projects, or how can I start some small ones, then I wanna include API ones and also maybe add some security projects. Advice please. thank you
r/PythonLearning • u/Silly_Character8808 • Aug 25 '26
Hi everyone,
I needed some dependency injection (DI) library that is simple for my use case, I was surprise by the lack of DI libraries in general, and the one that already exists had some weird quirks that didn't make sense or were unexpected
I have started the project a year a go and gave up due to lack of time, I came back to the project and rewrote it 🙃
I think I am close to releasing the first version with basic support, and grow the project from there,
no AI was nor will be used (at least for now 😭)
## What it does?
make dependency injection pattern simple, convincing and explicit, no surprises
## example
import cdi
from typing import Generic, TypeVar
from collection.abc import Sequence
T = TypeVar('T')
ctr = cdi.Container()
class MyBase(Generic[T]):
def __init__(self, field: T) -> None:
self.field = field
@cdi.Injectable(ctr)
class MyType(MyBase[str]):
pass
@cdi.Injectable(ctr)
def name_generator() -> str:
return "foo"
scope = cdi.Scope(ctr)
instance = scope.get_instance(MyType)
assert instance.field == "foo"more examples in the repo README
## docs
available in the project README
## open for contribution
I am open for PR (that are not AI) and suggestions that make sense for such library, I have a few ideas
for more support but it will probably take more time
install: `pip install cdi-di` (in beta)
r/PythonLearning • u/okitookka • Aug 25 '26
people please help, i’m starting my path in bachelor cybersec in a week and i want to know python a bit so i can basically understand smth, but for now looking for a community to learn python
and engaging through my path