I am being told that Python is far superior to C in the ease of programming. I am an average( dont want to praise myself) user of C. Will it be helpful if I learn Python to implement my codes in future?
C is a faster language compared to Python as it is compiled. Python programs are usually slower than C programs as they are interpreted. In C, the type of the various variables must be declared when they are created, and only values of those particular types must be assigned to them.
Python, Java, etc. are high level relative to C because many of those standard data structures are built in to the language or are part of the standard libraries. Having those right out of the box makes it easier to program at a more abstract level.
Python is always recommended if you're looking for an easy and even fun programming language to learn first. Rather than having to jump into strict syntax rules, Python reads like English and is simple to understand for someone who's new to programming.
So popularity-wise Python scores over C++. Especially for the development of machine learning applications, it is the number one choice for programmers. Python with its simplicity and easy to use features allows us to write concise, easily readable code, etc.
It depends on what do you expect from your language. For example I am developing firmware for embedded device. I can boot Linux in it and do my work in Python, but I need really fast code tuned for the hardware, so I use C on bare metal (without operating system). On the other hand, I need to develop many programs for my PC communicating with that device, mainly for developing and testing purposes. I don't need this programs to be tuned, I don't even need them to run fast. I just need them to be created quickly and to be robust and safe - so I use Python.
EDIT: When picking a language, I think you should read Beating the Averages
It's always useful to learn another language. If you're familiar with C then I'd invest some time in learning C++ and this is likely to be more immediately useful and will build on your existing skillset, but if you've got the time then learning Python is a great idea!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With