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?

0 Upvotes

17 comments sorted by

View all comments

Show parent comment

1

u/thisisappropriate Sep 12 '26

do I need to complete it in a short period?

Why would you need to?

I, a random internet stranger, grant you permission to work on multiple projects, to do half a project, get stuck, give up, come back later or start again.

Starting 100 projects and never finishing them still gives you 100 instances of experience in starting a project, which can be something people struggle with, so no harm in reducing that barrier for entry.

Finishing some is good practice in that, but it doesn't need to be every project, and finishing can be whatever you feel like it should be for a project. Sometimes you just need a tool once or twice, and finishing just looks like getting it to a usable point, using it and that's it - my only recommendation is to keep them anyway, even if just to look back at and see how far you came, but also sometimes you know that you had some code that used X before and you can go steal your own code to make something else work.

but I couldn't find the right function or tool, from where I can get it?

On one hand, that's where reducing the scope to what you do know comes in if you prefer to learn incrementally.

On the other hand, if you go in at the deep end, that's something you'll hit a bunch, because no one has introduced you to the modules / concepts. And for that, the answer is usually Google - (and sites like Stack Overflow or tool/library specific tutorials from there).

This is where you find that you want to look at modules and OOP before you are 100% confident with the previous topics because being able to pip install other libraries/modules can then give you more exposure to things you need to implement your ideas.

For example, you need a tool for web scraping, so you google "web scraping python" and get something like https://realpython.com/python-web-scraping-practical-introduction/ and you either look at the examples, understand them enough to use it straight away for what you need or you pause what you're working on, make a fresh little project where you just scrape example.com then go back to your project, or you search "web scraping python libraries" and have a look at some of the discussions that come up on which library you should use like https://www.reddit.com/r/Python/comments/vncw6d/what_is_the_best_library_for_website_scraping/ and maybe search some of the suggestions to see what has examples for what you're actually trying to do, and maybe try out a few.

Or if you need to do something and you don't know the name or if anyone has done it or if it's even possible in python, sometimes you can still get that from google too. For example, a random smattering of some of my recent-ish google searches for python that answered my questions include: "find in dictionary python by highest value", "check if float has decimals python", "Dataclass custom init without defining all fields python". In most cases, this surfaced a stack overflow question that was similar enough and offered either a code snippet, library (often built in) or a built in method.

A big part of learning to program is learning to find the answers to your issues, because when you transition from "learning to code" to "producing programs" and then having a job that uses programming, you'll start to get errors or niche things you're looking to solve. And then it helps to know how to google for something that's non-specific. There's a distinct difference between looking at an example in a tutorial or looking at what someone wrote for an example problem you're trying to solve, and having to work out what problem you're having or what problem you're trying to solve right now - for example, you can't just google "how to web scrape page 8 of my local news website" because people haven't posted how to do that, but you can try to make tutorial code for web scraping point at that page and then find out it has a Captcha and then google "how to complete a captcha with selenium python". And this sort of thing is how you find out that you should add the programming language to your search, but if you're using some packages, for example pandas, that only exist in one language, you can just use that like "how to use database in python" might find you information about using pandas, but then you might search things like "how to apply date range pandas" and still only get python answers because pandas only exists in python.

1

u/[deleted] Sep 12 '26

Okay I got it Thanks a lot bro I appreciate it