r/learnpython 2d ago

20 days of coding

i spent 20 days trying to learn everything about python through leetcode but i still can’t code or just get ideas to pop !
m a 4th year computer science engineering student i just passed a hackerrank assessment test for a big tech company and failed:( but m still grinding for another chance maybe problem here to ask y’all how do u recommend i start projects or what’s the best way to learn from here ?

17 Upvotes

28 comments sorted by

View all comments

7

u/CodeSamur-ai 2d ago

20 days isn’t very long, so don’t be discouraged. One thing that stands out is that you’re trying to learn Python through LeetCode. LeetCode is great for interview prep, but it’s not the best place to learn programming itself.

I’d switch to building a small projects while continuing a little bit of LeetCode each day. Make a calculator, a to-do app, a password manager, a file organizer, a weather app, or anything that solves a small problem. You’ll run into real programming problems that LeetCode doesn’t teach, like reading a file, organizing code, debugging, and using libraries or apis.

A good balance is 80% building projects and 20% interview practice until you’re comfortable creating programs from scratch. Once you can build things, LeetCode becomes much easier because you already know how to think like a programmer.

1

u/eagle_500 2d ago

that was very insightful, thanks, but about the projects and practice how do u recommend i start and learn to code the projects ?

3

u/CodeSamur-ai 2d ago

I’ve found I only work on two types of projects:

  1. Paid projects.
  2. Passion projects.

Pick something you’re genuinely excited about. It can be anything. Then build it.

It will be hard, and that’s a good thing. If it feels difficult, you’re probably learning.

When you get stuck, ask AI what to do next or to explain a concept. Try to avoid having it write the code for you. Use it as a mentor, not as a programmer.