In: Computer Science
Compare two programming languages of your choice based on all these criteria.
1. Readability
2. Writability
3.Reliability
4. Cost
//do comment if further clarification needed
Two programming languages: c and python
1. Readability
Python can be as readable as pseudo code.
for example: Here's a code to print all words in a list word
for word in words:
print(word)
Whereas c can be difficult to read and sometimes unreadable.
For example: Here's the code to print all integers of a array
for(int i=0;i<n;i++)
printf("%d ",*(array+i));
See the difference.
2. Writability
In python, complex codes can be written easily too.
For example: here's code to sort a list in python
listname.sort()
Whereas in c, there is no convention to sort an array in one line, a function has to be created in order to sort an array
3.Reliability
Python is highly reliable as compared to c.
For example, There's no need to worry about memory management in python, whereas in c, the most common problem is memory leak in program.
4. Cost
Here comes the advantages of c:
In terms of time, c is one of the most fastest languages ever written, whereas python is as slow as 10 times on some operations as compared to c.