Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which is better C Vs Python? [closed]

Tags:

python

c

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?

like image 839
bubble Avatar asked Mar 21 '11 11:03

bubble


People also ask

Is C is better than Python?

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.

Is Python higher level than C?

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.

Which is best C or Python for beginners?

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.

Is Python more popular than C?

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.


2 Answers

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

like image 163
Adam Trhon Avatar answered Oct 12 '22 23:10

Adam Trhon


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!

like image 40
Sean Avatar answered Oct 12 '22 23:10

Sean