0
In this operation, I use Python and the answer is 6566, but if I solve it on paper, the answer is 734. Can anyone explain?
print(5+(2+1)**2**3)
6 Answers
+ 2
Because it is calculating for 2**3 = 8 if you don't use parentheses.
print(5+(2+1)**8)
+ 2
It's fun that Python thinks one way and humans think the other.
+ 1
You only forgot adding parentheses between powers. The right answer is here
print(5+((2+1)**2)**3)
0
use brackets correctly
0
what do you mean?
0
I get it, but there is no error in Python if you dont use the parentheses. How can Python calculate the operations without those parentheses?