Which is better if we compare C vs Python?

0 votes
I have been using C mostly and I need to know how Python would be more helpful. Will it be better if I learn Python to implement my codes in future?
Mar 6 in Python by ana1504.k
• 7,550 points
11 views

1 answer to this question.

0 votes
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.
answered Mar 6 by SDeb
• 12,520 points

Related Questions In Python

+1 vote
0 answers

how is python better or faster than c++?

key features with an example? READ MORE

Apr 22 in Python by Waseem
• 3,560 points
27 views
0 votes
1 answer
+1 vote
1 answer

How to check if a string is null in python

Try this: if cookie and not cookie.isspace(): # the ...READ MORE

answered Aug 20, 2018 in Python by Priyaj
• 56,160 points
1,674 views
+7 votes
8 answers

Difference for string comparison in Python: 'is' vs. ==

If we use "==" means both variables ...READ MORE

answered Sep 3, 2018 in Python by Parul Raheja
380 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 135 views
0 votes
1 answer

Python if not == vs if !=

Using dis to look at the bytecode ...READ MORE

answered Jan 28 in Python by SDeb
• 12,520 points
62 views
0 votes
1 answer

How is Python 2.7.3 and Python 3.3 different?

raw_input() is not used in Python 3. Use input()  ...READ MORE

answered Sep 12, 2018 in Python by SDeb
• 12,520 points
30 views