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.
Yeah. Depends on if you want to learn about e.g. array sizing as well, in which case you should probably use something else. Java is quite nice for this imo, as the garbage collector is nice (so no manual clean up). Use C if you want to get relatively close to the hardware (as close as most people ever need to go, to be honest). C alone is also very sparse, e.g. very few predefined functions, which might be nice for a beginner wanting to learn this stuff bottom up.
6
u/FigureSubject3259 2h 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".
1
u/feierlk 28m ago
Yeah. Depends on if you want to learn about e.g. array sizing as well, in which case you should probably use something else. Java is quite nice for this imo, as the garbage collector is nice (so no manual clean up). Use C if you want to get relatively close to the hardware (as close as most people ever need to go, to be honest). C alone is also very sparse, e.g. very few predefined functions, which might be nice for a beginner wanting to learn this stuff bottom up.