- 2
How do i calculate 5+6*10 to get 110 on
15 Respostas
+ 7
(5+6)*10
+ 2
Udoka Peace Nope python follows PEMDAS
Sequence Follow by Python :-
Parenthesis
Exponentiation
Multiplication
Division
Addition
Subtraction
So first multiplication 6*10 done and then 5+60 = 65 A ̀n ̀s ̀w ̀e ̀r ̀
but you can change the sequence by adding parenthesis means brackets ( )
Like Example :-
(5+6)*10
So as adding parenthesis we tell python to do which operation first so its done 5 + 6 and then multiply to 10
11*10 = 110 A ̀n ̀s ̀w ̀e ̀r ̀
+ 1
x=(5+6)*10
print(x)
+ 1
print((5+6)*10)
+ 1
((5+6)*10)
(11*10)
110
+ 1
Someone hit dwonarrow don't do that please encourage learners.....đ
0
I did that it did not work
0
Hey Simba I tried it but it showed me unmatched
0
print((5+6)*10)
0
I have posted it
0
Simba pls check my post it is written there
0
Python follows PEMDAS Rule
0
Python is calculating numbers using bodmas but 5+6*10=110 according to python but when I type the same5+6*10 pthyon calculate it to be 65
0
Sum=5+6
M=10
print(SumĂM)