0

Tell me the answer for 1+3-5*5 using python

4th Oct 2017, 6:05 AM
Shabir Ahmad
Shabir Ahmad - avatar
2 Answers
+ 1
preference of mathematical Operating in python is same as the preference in math. so first multiply than addition than substraction. so answer will be 4-25=-21
4th Oct 2017, 6:15 AM
Bhawani Shankar Sahu
Bhawani Shankar Sahu - avatar
0
which is know as Operator precedence
4th Oct 2017, 6:17 AM
Bhawani Shankar Sahu
Bhawani Shankar Sahu - avatar