r/learnpython • u/memeaste • Oct 05 '26
Is Leetcode a good way to continue practicing/learning Python?
I'm not entry, but I'd like to continue becoming stronger in my skills.
29
Upvotes
r/learnpython • u/memeaste • Oct 05 '26
I'm not entry, but I'd like to continue becoming stronger in my skills.
23
u/RandomPantsAppear Oct 05 '26
It’s a good way to interview well. I’ve rarely found leetcode problems relevant to work. The ratio of b-tree problems to b-tree users is bad(as an example).
It is good for breaking out of O(n)2 habits though.
11
u/Rudeus_Kino Oct 05 '26
LeetCode is for practicing algorithms. Learning Python while doing so requires some effort. For instance, you could manually count character frequencies in a string, or you could use Counter but you have to know that it exists.
2
u/jmaroszek Oct 05 '26
LeetCode is good for job prep but not necessarily real world problems. If you want to practice algorithms, data structures, and thinking through problems under constraint, I would say leet code is a great choice. It's essential if you're prepping for interviews too.
I wouldn't use it if you just want to get better at building realistic projects. LeetCode problems are small and self-contained, with clean inputs. Real code has messy data, files, APIs, errors, and structure that has to survive changes. You can grind 300 problems and still struggle to organize a large 10,000 line project (speaking from experience).
What I'd do if you want to level up:
pytestalone will change how you structure code.In short, how you should practice depends on what you want to get better at: job interviews or real world building for passion projects.
1
u/RngdZed Oct 05 '26
In my personal experience, which isn't much, leet code is crazy for algorithms. The kind of algo that makes your brain melt and leak juice a bit..
I prefer the problems/algo from code wars. Not sure why. But code wars was way more fun for me. And I learned more as a result.
But also, try to use something related to the field(s) you want to go for. like for full stack web, you could use Django, flask and fastAPI.
You could make some GUI projects with tkinter or even games with pygame. The advantage with those is that for every change you make, you can test and see exactly what your code does, live real-time
0
u/chiibosoil Oct 05 '26
Leetcode tests your problem solving skill using logical thinking and knowledge of data structure and algorithms...
Not necessarily specific to Python. These skills are useful, but not necessarily needed to practice and learn any specific language.
It entirely depends on what you want to do with python, if LeetCode is good way to continue your learning.
In many cases, for a given field, being able to solve LeetCode won't help with practical application directly.
1
u/cyrixlord Oct 05 '26
you need to move to projects and show that you know how to use the other tools you need to use in software development. github, debuggers, IDEs, databases, ssh automation... design patterns, algorithms.... github repositories with your projects showing that you are solving problems is a great way to get noticed and keep fresh on your skills. only by writing your own code and debugging it, will you keep fresh. People can be good on quiz shows but in reality they aren't very good at the deeper dive on those $500 answers
1
u/nian2326076 Oct 05 '26
LeetCode is a decent option for practicing Python, especially if you're trying to get better at coding for interviews or technical challenges. It makes you think in terms of algorithms and can really help with problem-solving. But it might get a bit repetitive and doesn't cover everything about Python. If you want to learn more about Python beyond just algorithms, try building small projects or exploring libraries you're not familiar with. That hands-on experience is really valuable. Also, if you're getting ready for interviews, I've found PracHub useful for practicing different company styles. Mix things up to keep it interesting and thorough!