Немного не понимаю что это: 7%(5 // 2) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Немного не понимаю что это: 7%(5 // 2)

Объясните мне пожалуйста подробно что значят "%" и "//".

14th Apr 2019, 2:16 PM
Дамир Бултурбаев
Дамир Бултурбаев - avatar
2 Answers
+ 1
% - остаток от деления на число // - комментарий
15th Apr 2019, 7:14 PM
id001x
id001x - avatar
0
% stands for modulus. It calculate the remainder of a division 7 / 5 = 1 7 % 5 = 2 https://www.dotnetperls.com/modulo Please put the language you use in the tags.
14th Apr 2019, 3:37 PM
sneeze
sneeze - avatar