Computer Science, asked by pannupuneet62, 1 month ago

3. The result of 20-16//(5-2)*4 in Python will be - ​

Answers

Answered by BrainlyProgrammer
4

Answer:-

20-16//(5-2)*4

>>20-16//3*4 //integer division, 16//3, quotient=5

>>20-5*4 //5*4=20

>>20-20

>>0

Order of operators...

\boxed{ \begin{array}{c|c}\tt  \underline{Operators}:&\tt\underline{Hierarchy}:\\ \tt( \: ),[ \: ]&\tt1\\ ++,--,\sim,!& \tt2\\ \tt *,/,\%&\tt3\\ +,-&\tt4 \\ \tt >>,>>>,<<&\tt5\\ \tt >,>=,<,<=&\tt6\\ \tt ==,!= &\tt7\\  \& &\tt8\\ \tt ^{\wedge}&\tt9\\ \tt !&\tt10\\ \tt\&\& & \tt11 \\ \tt ||&\tt12\\ \tt ?=&\tt13\\ \tt =&\tt14 \end{array}}

Answered by olamideolajuyi19
1

Answer:

20-16//(5-2)*4

20-16//3*4  

20-5*4 // 5*4=20

20-20

= 0

Similar questions