It’s completely normal to feel stuck when you’re starting out, especially if you didn’t come from a programming background. Don’t beat yourself up for that. Learning Python takes time. In fact, learning any new skill takes time!
If you get stuck when trying to write small programs, it usually means you need to slow down and strengthen your fundamentals. Break problems into smaller steps and figure out how to solve each step with Python. Use simple exercises to understand what every part of your code is doing and why.
Small projects help a lot. Pick things you’re genuinely interested in. If you like health data, try something like predicting medical costs or exploring heart disease datasets. If you prefer e-commerce, try customer segmentation or churn. These projects introduce you to real problems while improving your thinking and your coding.
There are plenty of beginner resources. DataCamp has structured paths. You can also check W3Schools, DataLemur for SQL, and many free Python resources on YouTube.
The only way to get comfortable with problem solving is to keep practicing. Even experienced programmers struggle sometimes. It’s part of the craft. If possible, try to set aside 3 hours a day if you can. Bootcamps or in-person classes can also help if you learn better with guidance.
I guess the last thing I would say is: Be patient with yourself. You might feel confused for a while, but that’s normal. We've all been there. You may feel left behind, but in truth, we all are....LOL. And....you’ve already made progress. Some months ago you didn’t know what a python function was, and today you’re writing loops. Next thing you know, you can actually train predictive models. That’s growth. Keep going. It adds up.
Hope this helps.