What's python used for? Is it better than c++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What's python used for? Is it better than c++?

3rd Dec 2020, 7:19 AM
Yamen Agha
Yamen Agha - avatar
15 Answers
+ 8
I'd like to make one thing clear. Both C++ and python can almost solve the same problems. The differences however are: - C++ requires some more computer and memory knowledge than python. - Python is more beginner friendly, but that doesn't mean that C++ is bad for beginners. In fact, C++ was my first programming language to learn. - C++ is faster than python, but the speed difference might only be noticeable to an average human being when running a resource intensive program written by either language - Fun fact: the original implementation of python is called CPython and that language is written in C - One answer here says python is better than C++ for Data Science. Actually that's not fully true unless by "better" they meant that shorter code and many libraries/modules are available In the end, I recommend you read a few articles on that. Any article that has the writer stating their own opinion should be ignored because there's a big chance they'll be misleading.
4th Dec 2020, 11:53 AM
Coal
+ 12
Both are fast. C++ has better and faster execution speed. Python is faster in development, less code,less time so booster for development
3rd Dec 2020, 7:29 AM
0_O-[MƤgĆ”r_SĆ”m_ƄkĆ _NĆ¼llpĆøĆÆntĆŖr_ƈxĆ«cĆ©ptĆÆƶn]~~
0_O-[MƤgĆ”r_SĆ”m_ƄkĆ _NĆ¼llpĆøĆÆntĆŖr_ƈxĆ«cĆ©ptĆÆƶn]~~ - avatar
+ 9
I support BeegCat s answer Cpp is faster and better and those who learns it has much better logic rather than python devs(not being rude to python) cos python has lots of built in libraries nd functions that just solves everything without much hardwork.....but still there's not such a beginner friendly & powerful lang like python ever..
3rd Dec 2020, 7:45 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 7
Check the below thread ,especially the answers by VAMSI ... Python vs C++ comparison threads are given to u by Aysha Simra ... Also Pls use the search bar next time to avoid duplicates https://www.sololearn.com/Discuss/2590605/?ref=app
3rd Dec 2020, 7:28 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 7
Adams Kolawole C++ is not a Low level language...It is a mid-level language
3rd Dec 2020, 9:50 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 5
With Django you can do back end web development in python easier than in C++.
4th Dec 2020, 8:24 AM
Sonic
Sonic - avatar
+ 4
Python is better than C++ for Data science.
4th Dec 2020, 8:22 AM
Sonic
Sonic - avatar
+ 4
AI/ML is easier in Python.
4th Dec 2020, 8:23 AM
Sonic
Sonic - avatar
+ 2
Alphin K Sajan low-level languages are machine and assembly code. Any other language other than that is high-level. Mid-level languages do not exist
4th Dec 2020, 11:38 AM
Coal
+ 2
Cryptic Art What he means by ā€œmid level languageā€ is that it has low level functionality, like the ability to run on almost bare metal, but it is also easily readable and writable.
4th Dec 2020, 9:56 PM
Aria
Aria - avatar
+ 1
Python using for every one. But most popular python using web and data science. C++ using for highload systems
4th Dec 2020, 8:26 PM
Arman
+ 1
Adams Kolawole Where did you get the notion that C++ is not general purpose? I dont know if you realize most of python is written in C/C++...
4th Dec 2020, 9:54 PM
Aria
Aria - avatar
0
It depends on what criteria suit you best. If you don't want to bother with the syntax, use Python, if you want fast performance then C ++, you can also read various sites on this topi. Sorry if I wrote something wrong
4th Dec 2020, 9:23 PM
Ermak2006
Ermak2006 - avatar
- 2
Python is a general purpose language, while c++ is a not But python is a high level language C++ is not but it is a low level language
3rd Dec 2020, 9:47 AM
Adams Kolawole
Adams Kolawole - avatar