The question says it all.
Should I learn C or Python as my first programming language?
1 answer
Chosen as the best answer
If you want to build something useful fast and not lose interest, start with Python. If you want to understand what the computer is actually doing, learn C. You will want both in the end, so the order matters less than people think.
I learned C first and Python later. C was slow going, but it is the reason pointers and memory never scared me afterwards.
When Python first makes sense
- you want results quickly: automating a boring task, a small script, a simple web app
- you are learning alone, and the real danger is giving up
- you are interested in AI or data, where almost everything is in Python
When C first makes sense
- your college syllabus starts with C (most Indian ones do), so you have to learn it anyway
- you want to work close to hardware: embedded, robotics, operating systems
- you like knowing why something works, not just that it works
What I would do today
Spend two or three months on Python. Variables, loops, functions, lists, dictionaries, files. Build two small things you actually use.
Then give C a month or two. Pointers, arrays, structs, memory, compiling. Rewrite one of your Python programs in C and you will feel the difference straight away.
After that, pick by what you want to make: Dart or Kotlin for apps, JavaScript for the web, more Python for AI.
Whatever you choose, write code every day and read the error messages properly. Ten small finished programs in the "wrong" language will teach you more than a month of deciding.
Your answer
Know the answer? Sign in and share it. Useful answers earn points.
Sign in to answer