DIE Community
Ask

Should I learn C or Python as my first programming language?

DIEAbdulHadiFounderAsked 0 views
0

The question says it all.

1 answer

  1. 0

    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.

    Link

Your answer

↑ ↓ to moveEnter to open