The article shows how to use python and Mathematica to do elementary arithmetic with a few examples.
The examples come from An Elementary Introduction To The Wolfram Language
Calculate 10 to the power 12
print( 10**12 )
10^12
Compute 2 to the power 2 to the power 2 to the power 2
result = 2 for i in range(3): result = pow(2, result) print( result )
2^2^2^2
2^2^2^2 = 2^(2^(2^2))
Add the whole numbers from 1 to 10
result = 0 for i in range(10): result = result + i+1 print( result )
sum = 0 Do [ sum = sum+i ,{i,10} ] Print[sum]