r/AskComputerScience • • 1d ago

Python

Can we learn dsa in python?

0 Upvotes

4 comments sorted by

View all comments

7

u/FigureSubject3259 1d ago

All programming languages beeing turing complete can be used to solve the same problem. The difference is mainly in effort.

As Python is turing complete the answer is yes depending on your defintion of "we", "can" and "DSA".

2

u/8dot30662386292pow2 1d ago

I also think "yes" but with a caveat, because python does not give access to fixed size arrays, unless you use numpy. That would be the main ingredient in making other data structures.

Yes, I know that there are whole DSA courses where python is the only language they use. They teach a lot and are useful, but I feel like something is missing.

-3

u/DeleuzeJr 1d ago

Calm down, Jordan Peterson