+ 2
what is the solution >>> 7%(5 // 2)
please help me & show me the steps thenk you
5 Respuestas
+ 12
Before of all, let's solve the calculation in parenthesis: 5//2 = 2
From Stack - [ ... In Python 3, they made the / operator do a floating-point division, and added the // operator to do integer division ]
Now... the exercise will be: 7 % 2
Modulo gives the remainder of a division, so...
7 % 2 = 1
Full Exercise:
7 % ( 5 // 2 )
7 % ( 2 )
1
+ 1
It's 1. 2 goes into 5 two times (5//2) disregard any float numbers. Then you get 7%2. So this is asking for the remainder. So in 7%2, 2 goes into 7 three times, leaving one as the remainder to make 7. That 1 is your answer.
0
7 % 2 = 1
0
как 7 % 2 = 1 ?? нифига не пойму
0
thanks 👌🏻🙈