Python is more flexible or C++? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula gr√°tis
0

Python is more flexible or C++?

6th May 2020, 9:45 AM
Ved Tiwari
Ved Tiwari - avatar
4 Respostas
+ 2
Probably we'd have to know how 'flexibility' is meant specifically. C++ gives you a lot of choice for everything, like if you want to copy something or reference it, if you store data on stack or heap or whatever... you operate 'close to the machine', which provides opportunities Python doesn't have. On the other hand, if flexibility means that you can do a huge variation of tasks easily and quickly, Python does offer that because of the huge standard library and the many additional features you can use via pip. But if it comes to define how stuff is done specifically, most of it is not accessible to you via Python.
6th May 2020, 10:18 AM
HonFu
HonFu - avatar
0
Dear Friend.. Flexibility is depended on your Algorithm.. It's in your hands. You can code whatever you want in both Languages.. Thank You.. ūüôŹūüôŹūüôŹūüôŹ
6th May 2020, 9:51 AM
Eswar V
0
But acording to my sir C++ is more flexible
6th May 2020, 9:52 AM
Ved Tiwari
Ved Tiwari - avatar
- 2
C++ is a low level programming language whereas python is high level. Low level languages tend to be nearer to the hardware giving you more control for complex programs (which you might not need)
6th May 2020, 10:12 AM
Bhavya
Bhavya - avatar