4 Antworten
+ 5
both are useful, but depends on your need
+ 1
C++ is much better than python if you choose it for DSA , as C++ is a low level language(it's much faster than python) on the other hand , python is a High level language (it's slow ) not good if in future you want to do DSA. But python has a very simple and readable syntax. C++ is more difficult to learn. If you're a beginner learn python first then after 5-6months you can start C++ , then you'll find C++ easier. Also , python has very vast use case in fields such data science , AI/ML , deep learning etc.
0
Both have disadvantages and advantages, I recommend you to read about them and choose the language you like.
If you are curious about the differences then you could read those:
https://www.ionos.com/digitalguide/websites/web-development/JUMP_LINK__&&__python__&&__JUMP_LINK-vs-c/
https://www.geeksforgeeks.org/difference-between-python-and-c/
https://www.simplilearn.com/tutorials/cpp-tutorial/cpp-vs-python
https://www.bitdegree.org/tutorials/python-vs-c-plus-plus
(I found them using Google)
0
Both languages are useful for using any program, for example for automating everyday tasks. But C++ runs faster than Python because of its difficult syntax, strict data definition, and manual RAM control.