Computer Science, asked by Troll2424, 3 months ago

24//4//4 outout using python expression

Answers

Answered by allysia
2

Answer:

1

Explanation:

The priorities of operators in python are as followed:

  • ()
  • ^ or * *
  • /, // , %, *
  • +,-

Using that,

We solve it from right to left since the operands have same priority:

  • 24//4//4
  • 6//4
  • 1
Answered by BrainlyProgrammer
2

Answer:

// is used for integer division

therefore your answer is as follows:

24//4//4 \: \:  \green{ (  \sf24 \div 4 = 6)}\\   \:  \:  \:  \:  \:  \:  \:  \:  \:  \:  \: = 6//4   \:  \:  \green{ \sf(6 \div 4 = 1  \:  \: \orange{(integer \: division)})}\\ = 1 \:  \:  \:  \:  \:  \:  \:  \:  \:  \:  \:  \:  \:  \:

Similar questions