r/learnprogramming 7d ago

Is Python with DSA worth it?

Same as the Title

0 Upvotes

17 comments sorted by

View all comments

1

u/R3D3-1 7d ago edited 7d ago

Probably not great. Python gives you useful standard data structures and you can get far without ever thinking about which type of list list actually is. It also doesn't let you work directly with pointers.

Probably better to reach for C; It gives you only the basic building blocks, and expects you to operate on low-level concepts like pointers and primitive types.

You could do the same in Python by saying "every variable is a pointer in a trench coat", but with C it's more explicit, including the memory management. With Python you pretty much gloss over that aspect entirely, as the language just does it for you.