Python or C++ | SoloLearn: Learn to code for FREE!

+10

Python or C++

What is best to make programm?

8/10/2018 6:13:39 AM

Ilhom Inomboev

38 Answers

New Answer

+11

The answer to this greatly depends upon your application. Both are great programming languages. Here comes the trade off. C/C++ are very close to the assembly languages and hence the execution is 122x faster than high level languages like python or java. Python is indeed sometimes convenient to work with as the syntax is a bit more English like. I have come across many scenarios whereby 4 line code in python took about 20 to 30 lines in other languages. With high speed electronics and flexibility of high level languages I would go with python most of the time for complex tasks. But I feel every beginner should start off with C then C++ and then Python. Or all 3 at the same time if you can. EDIT: The reason why I am saying this is once you know old languages and start to learn the new you appreciate the importance of new languages, the features they pour into our programming world. Object oriented languages will never die so pick up of your choice and get going switching in between is easy.

+7

The choice has nothing to do with being a new or an advanced programmer. You can put languages in several dimensions. You can categorise them in: System programming languages Bytecode languages Script languages. The more you go towards script, the easier the language. But also the less control you have. It's always a tradeoff. (That's why there is not a single programming language that is the best) Also programming languages have different properties: With or without garbage collection. They way they handle datatypes. (For example javascript & typescript) The style they follow and much much more. Python is an easy language. No need to compile it. Just run is. It's quick for the developer. Python when performance needed is mostly connected to underlying C programs for speed. Python itself is slow. It's not a language you build advanced performant programs with. But it's easy and quick to setup a certain solution. C++ is as they say. Baremetal. It is possible to run it without OS. This means you also need to handle your own memory and other things. YOU are in full control. This means YOU can make the program fast or slow or messy or anything. But it's a strong language that will probably survive another 30 years.(Unless Rust is going to destroy it) If you are into mathematics, statistics, are a beginner who likes to see fast results and fast development time to make something as a hobby, or do web backend. Python. If you are into games, high performant programs, small embedded devices. Want to make real systems. Go for C++

+6

what do you mean? We can not choose between these two. Because each one does a different job

+6

Which of this are good for programming?

+6

+6

+6

You need to understand that one programming language isn't better than another. They all have different purposes. You really need to ask what you want to do THEN ask what language is best for that task. C++ is one of the most capable and fastest languages out there, but you have to pay for it. It's pretty difficult. Python is much easier and takes far less time, but performance suffers and you have less control.

+6

the,ans depands,on your apps as well as your skills..but first you now a days many codes are written in c++..so i prefer c++. but python also best

+5

benjamin akinmoyeje I am a VHDL/Verilog programmer but during my college I have learnt in this order. No matter which language it is if it is in the market it has several reasons behind it.

+5

+4

Ilhom Inomboev All 3 and also the rest courses on Sololearn. Start slow grow big its worth it. As an insight NASA missions in the old days were programmed in these legacy languages. And C/C++ will always be the base of a computer science grad until you dont want to appreciate the text that gets translated to perform magical mysterious circuit level tasks! :) Happy coding.

+4

c++ for afvanced pyton for new

+4

I'd learn python first if you're a beginner and maybe javascript then move onto lower level languages like cpp

+4

+4

absolutely python

+4

c++ is somewhat a better language for programming purpose rather than python... though python is easy and has multiple applications and advantages...c++ is the core and cannot be neglected....and yes...it all depends on what you want to create

+4

PYTHON. Definitely. 😏

+3

c++ from start i finking #include <iostream> using namespace std; int main() cout<<"hello, world!"<<endl; }

+3

thanks A2A, it's depand on you in which language you have interest.if your interest in python become master in it otherwise do master in c++.

+3

c++ is a hard language to be the first to learn