Current location - Loan Platform Complete Network - Big data management - C++ or Python for beginners?
C++ or Python for beginners?
In terms of difficult and easy programs as well as job prospects, it is recommended to learn Python first.

Differences between C++ and Python:

C++ needs to be compiled and executed as a language, Python is interpreted and executed as a language; Python indentation is strict, distinguishing code blocks by indentation, while C++ is marked by curly braces; Python and C++ s global variables, looping statements, and use of keywords are different.

Running efficiency: C++ is greater than Python. both Python code and C++ end up as CPU instructions to run, but in general, such as reversing and merging two strings, Python ends up converting out many more CPU instructions than C++.

Python has more stuff than C++, it goes through more layers, even numbers are objects in Python.

Python is interpreted, and there is an extra layer of interpreter between it and the CPU of the physical machine, whereas C++ is compiled, and it's just straight to the machine code, which can be optimized by the compiler when compiling, so the efficiency of the runtime can't be compared to that of C++. The compiler can do some optimization when compiling, so the running efficiency can't be compared to that.

Development efficiency: Python is bigger than C++, what Python can do in one or two lines, C++ needs a lot, even more, so Python is bigger than C++ in development efficiency.