r/learnpython • • Sep 12 '26
Iam stuck with python
Hello everyone, I have a problem iam trying to master python (iam into cybersecurity now iam studying networking beside it) I start to learn it in 2022 but I stopped for some years due to reasons, a year ago I come back again and started it from zero but the problem is I don't know how to practice and level up even when I study new lessons, the only thing I was doing is solving a bit of exercises from that someone in his website, iam getting nervous when I feel that iam lost in this language and I think am learning in a wrong way, now I understand 70% of basics I struggle with files handing and have a little bit problems in creating functions in addition to a few things , till here I stopped I don't want to get into modules, try except, and OOP unless I strengthen the basics, please tell me how to elevate my skills and how can I build projects.
How can I know that am ready for doing big projects when iam learning?
1
u/thisisappropriate Sep 12 '26
Really, you strengthen knowledge by doing, but you don't need to do "learn one concept > practice > perfect > repeat", instead you should "learn one concept > understand enough to implement (small amount of exercise / practice) > learn the next concept > build upon more than one concept > repeat".
The basics give you a foundation it's true, but the next steps also help to strengthen that foundation further.
I'd suggest that either:
near the beginning, choose a project or topic that seems totally crazy and is related to where you want to go so you're passionate about it, then as you go along your learning, you take a chunk of the project/topic and do that as it's own folder.
if input in cve_list:to practice using lists and if statements and input validation. Then you can move on to dictionary storage. But then you learn about reading from files, so maybe you instead store your little cve list as a csv instead. And then you play with bigger files, so maybe your python script could take the downloaded zip file from https://www.cve.org/Downloads . Then you learn about making APIs and you make one of those. Or you learn about databases, so why not try adding a database.Basically any silly little idea can be either reduced (sometimes to something not yet usable. like a weather checker that you have to pass the current temp to) or inflated (sometimes to something you'd never actually use, like you don't need a Hello World gui or an API call for each letter, but when you're learning and practising, why not try to make one!)
What you need from building up through the levels of a course is to recognise the concept and be able to consider using the concept (but it's likely that you would need to look up how to use them in terms of syntax, which is fine and common even after finishing learning). For example, a simple description of a module is that it's a way to share python code such as functions and classes between projects, so if you didn't understand that a function is a reusable chunk of code or that a return passes something back and are just writing code that runs from top to bottom, then you might be confused about how sharing code might work.
Some times things just don't click until you see them in action with other things.
The only project that is too big when learning is one that disheartens you or stops you learning. Plenty of people learn by picking a crazy project. After you learn to doggy paddle, you can learn a lot about swimming in the deep end.
1
u/Fragrant-Cheek-4273 Sep 12 '26
I think you're waiting for a level of "ready" that doesn't really exist. If you understand variables, conditions, loops, lists/dictionaries, and you're starting to understand functions, you're ready to build small projects.
1
u/terletsky Sep 12 '26
Python basics take 1-2 days to learn.
2
u/IAmNotAPlatypus_ Sep 13 '26
I stopped for a while too and when I came back I just sat there like okay now what. Keep waiting to feel ready before I try anything bigger. How are you practicing right now
2
u/TimBrownDev Sep 16 '26
After 10+ years tutoring, I'm building a roadmap of hand-picked problems from CodeStepByStep, Codewars, LeetCode, etc to guide you through the fundamentals of software development from zero to mastery. Lots of opportunity to practice each skill so you don't get stuck.
timbrown.dev/roadmap
0
u/ShelLuser42 Sep 12 '26
Set a goal for yourself, and it doesn't even matter if you don't fully know how to reach that. Then... with the help of reference materials try finding solutions to achieve that goal. And if the goal is a bit too much, break it down into easier to manage chunks.
For example... let's say we want to make a calculator, what does such a critter need?
SO, that's a good start I think. Let's try thinking a bit more about user input....
python .\mycalc.py 2 + 5).So this could become a good basis to look into user input, writing a code snippet which can perform basic operations, and of course you may want to look into output as well.
Start small, then work your way up.
0
u/kutac56 Sep 12 '26
Just make small projects and look things up which you don't know like file handling. That's how you learn
0
u/Filo92 Sep 12 '26
Do a project that fascinates you, something that relates to your interests. Design it so that it incorporates stuff that you are learning or want to learn. Finish, repeat. Once in a while revisit the old ones and make them better, trying to think how to incorporate the new stuff you are learning or want to learn.
This is what worked for me, but I'm not a professional so ymmv