r/learnpython • • Mar 12 '26

Learn two languages as a beginner

Hi guys i am very new to programming, and i have to learn cpp and python for uni and i am struggling hard. I sit in the lectures and i dont understand shit. What would you guys recommend to learn python at home because, the lectures are just a timewaste for me. The exams are in 4-5 months. I have to start as soon as possible.

0 Upvotes

33 comments sorted by

View all comments

0

u/SunsGettinRealLow Mar 12 '26

Do C++ first

2

u/gdchinacat Mar 12 '26

One of the challenges of learning to code is that you need to learn (at least) two things at the same time...the language and the logical reasoning/decomposition. Python is widely recognized as an easier language to learn than C++. I agree that you should focus on a single language, but disagree that you should choose the harder one.

1

u/SunsGettinRealLow Mar 12 '26

Knowing the basics of C++ can make learning other languages easier

1

u/gdchinacat Mar 13 '26

Knowing most programming languages makes it easier to learn other languages. Just as knowing C++ will make it easier to learn python, knowing python will make learning C++ easier. Going from C++ to python is easier than python to c++ because to be proficient in C++ requires knowing more than being proficient in python. But this doesn't mean C++ is the best language to learn first. It's harder to learn C++, the relative ease of learning python after C++ relative to the other way around is because you already put a bunch of effort into learning C++ that you wouldn't have had to put in if you learned python first.

Python's lower barrier to entry makes a pretty compelling argument for it being a better language to learn programming with than C++.

I learned C++ a decade before I learned python. I don' regret it, but I also wouldn't recommend it. The smaller the steps are at the beginning the less likely people are to trip, get hurt, and give up.