r/learnpython • • 17h ago

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.

20 Upvotes

28 comments sorted by

View all comments

Show parent comments

1

u/chiibosoil 17h ago

What area of Software Development? Backend, frontend, or FullStack?

Also, what sort of software are you looking to develop? If looking for mobile app space or game... python may not be the optimal language to learn.

1

u/memeaste 16h ago

Game development was a fun hobby, but not something I was seeking professionally. My experience is more on the backend, though I don’t have a specific software I’m looking for. Figured I’ve been working with Python for over 2 years now, and I’ve enjoyed it quite a bit, so I’d like to keep going

1

u/chiibosoil 15h ago

With Python look for Fast API/Flask, SQLAlchemy, Django ORM, Uvicorn, Gunicorn, Redis-py, Celery libraries along with other management system and learn how to create clean architecture for your code/project.

Knowing how to use these and set up project/environment will be more useful than simply learning how to solve LeetCode in most situations.

1

u/memeaste 14h ago

What's the best scenario, should I be looking at every one? Or pick a couple and focus on it?

1

u/chiibosoil 14h ago

Though eventually you should pick up all of them...

Pick between FastAPI or Flask. Flask is more WSGI framework which is more flexible all-pupose web application develepment. Where Fast API focus is on high performance, asynchronous Rest API. Though not mutually exclusive.

Django ORM is more focused on rapid dev and deep ecosystem integration, where as SQLAlchemy is more for complete low-level control and architectural flexibility.

Uvicorn & Gunicorn is often used together and does different things. Uvicorn is more event loop based, and Gunicorn is process based (and also Unix-like only).

Redis is a message broker where as Celery is distributed task queue orchestrator (manages how background jobs are distributed, retried and executed across different worker and/or machines), which often uses Redis for holding queue of pending tasks and storing result of completed jobs..

1

u/memeaste 13h ago

Thank you for all of this. The course I’m taking on Udemy is using Flask, so I’ll keep using that an expand on it for now, get a solid understanding and then move to the next one.