1/13/2004
So everyone knows I'm a big python fan.
Forgetting the fact that it was the first language i learnt - it is still an amazing, productive and effiecient language.
I was reading this article about what programming languages need to go through a radical transforamtion.
I thought it was funny because of the example they placed and how languages aren't really user friendly.
They gave the example of creating three arryays and adding them togather.
Code:
/* Add arrays A and B and put the result in C. */
int A[10], B[10], C[10];
// possible solution
int i;
for (i=0; i<=9; i++){
C[i]=A[i]+B[i];
}
Obviously this won't work - the aritcle says. If you code in C/C++ or even Java. Obvioulsy he never heard of Python.
#The magic code:
Code:
a = ["this", "is" , "an", 88,22,99]
b = ["example", "of", 56,334, 0.3, "python's powers"]
c = a + b
c
['this', 'is', 'an', 88, 22, 99, 'example', 'of', 56, 334, 0.29999999999999999, "python's powers"]