1st May 2020, 5:07 AM
Chandana D
Chandana D - avatar
3 ответов
+ 6
7%(5//2) 7%(2) 1
1st May 2020, 5:09 AM
Cmurio
Cmurio - avatar
+ 1
We have to solve it using operators precedence ,so the first preference is given to parentheses so (5//2)=2 And then 7%2=1 Hence answer is 1
1st May 2020, 5:27 AM
ANJALI SAHU
0
Maybe your question is about the % operator? https://www.freecodecamp.org/news/the-JUMP_LINK__&&__python__&&__JUMP_LINK-modulo-operator-what-does-the-symbol-mean-in-python-solved/ ... or is it about the // operator? ... or about precedence and/or parenthesed expression as explained by RAJESH SAHU and showed step by step by Jesus Eduardo Canul Koyoc? Because if you only want to get the result, just open a python sololearn code playground or a python shell to be able to run and print the result of the expression ;P
1st May 2020, 12:35 PM
visph
visph - avatar