python or c++ | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 7

python or c++

which should i learn first python3 or c++ and what is the real diffrent between two of this languange? some said c++ is better then py and some said python much easier then c++...

7th May 2019, 8:26 PM
AxeCodex
AxeCodex - avatar
19 Respuestas
+ 9
- C/C++ have complete manual control over memory (this is what I meant by hardware). Dynamic allocated memory (using new/malloc) have to be released manually (using free/delete). If you don't you will have a leak which is memory that cannot be used until the program ends. Python has a Garbage collection which allocates/deallocates memory automatically: great feature to prevent ressource leaks but ressource consumming and unpredictable. - Raw speed in C/C++ is faster than Python because it is quite unsafe. No check before the access. For instance in Python if we do array [10] while array size is 2, it will throw an exception and/or some checks to protest access. These checks cost a little time. I personally like these 2 languages for next reasons: Python: - easy to learn - development speed - many libraries - memory management safety C++: - ressources control - pointers There is no best language, just choose the one which suits your needs.
11th May 2019, 9:30 PM
Michaël Randrianarisona
Michaël Randrianarisona - avatar
+ 35
I highly recommend you to start with Python for the following reasons: - Python is way easier to learn than C++, so it is more suitable for beginners - Python makes you adopt good habits in programming, for example: the indentation is mandatory in Python, which improves readability of your code
9th May 2019, 1:53 PM
Hicham BOURHIL
Hicham BOURHIL - avatar
+ 5
Hello AxeCodex("") I know your situation and confusion. I was in the same position. Both languages are great but for new people, python is definitely the go-to option. It's easy to learn, has a wide variety of applications and it will help you understand c++ better if you'll decide in the future to start learning c++. So definitely start with python. 😉 Hope this has benefited you.
7th May 2019, 9:02 PM
Hiro
Hiro - avatar
+ 5
‎BaselAl_hajeri['MBH'] thanks man ..i just start my journey in programming
8th May 2019, 1:43 PM
AxeCodex
AxeCodex - avatar
+ 5
C++
9th May 2019, 5:12 PM
Muhammad Rashid
Muhammad Rashid - avatar
+ 4
Good luck with your learning AxeCodex("") ,,, Just keep it up.
8th May 2019, 7:43 AM
Basel.Al_hajeri?.MBH()
Basel.Al_hajeri?.MBH() - avatar
+ 4
But c++ is faster.....I still code in Python though
12th May 2019, 2:10 PM
Taran
Taran - avatar
+ 2
thanks for the answer and explaination about it..well you see i just begin my journey on coding i got a lot thing to learn so that why sometime i confuss which languange should i learn first
7th May 2019, 8:40 PM
AxeCodex
AxeCodex - avatar
+ 2
AxeCodex("") don't worry about which one is better. Both are great languages. But I emphasise again that you should definitely start with python, since it's way easier and it will help you to think like a programmer. If you get familiar with python, you'll have an easier time transitioning to c++ than vice versa.
7th May 2019, 9:06 PM
Hiro
Hiro - avatar
+ 2
Bien
8th May 2019, 12:18 AM
Sif Ou
Sif Ou - avatar
+ 2
Start Java+Ruby, but 1stLearn C++ along with Javascript & Python. 🌼🍃🌼🤣🤣
8th May 2019, 6:48 PM
Asim Farheen
Asim Farheen - avatar
+ 2
If you want to work in gamedev you must learn c++ else you want to work in web you must learn python
9th May 2019, 10:29 AM
MONSTER
MONSTER - avatar
+ 2
If you want the full control (hardware and software) of your computer C/C++ are your best partners.
9th May 2019, 7:35 PM
Michaël Randrianarisona
Michaël Randrianarisona - avatar
+ 2
Michaël Randrianarisona what did you mean by that actually? can you explain more? ...
9th May 2019, 8:24 PM
AxeCodex
AxeCodex - avatar
7th May 2019, 8:31 PM
Basel.Al_hajeri?.MBH()
Basel.Al_hajeri?.MBH() - avatar
+ 1
I prefer both ,but if you learn python firstly it will help you to learn c++ ,and if you learn c++firstly it will confuse you to learn python.
7th May 2019, 8:33 PM
Basel.Al_hajeri?.MBH()
Basel.Al_hajeri?.MBH() - avatar
+ 1
And python is for beginners to make the programming easy for other things.
7th May 2019, 8:34 PM
Basel.Al_hajeri?.MBH()
Basel.Al_hajeri?.MBH() - avatar
+ 1
Start With Python then go for Java. And after that C++ will be easy for you to learn
8th May 2019, 8:36 AM
Sorry..
+ 1
python is by far the best language.... Ask sentdex
10th May 2019, 10:20 PM
Adigun Olamide
Adigun Olamide - avatar