Что значит % в пайтоне? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Что значит % в пайтоне?

22nd Jun 2020, 6:09 PM
ah1nd
ah1nd - avatar
2 Answers
+ 1
% is the remainder of a/b Ex. 10%2 = 0, there is none remaining 10%4 = 2, 4 goes into 10 twice, but then there is 2 remain
22nd Jun 2020, 6:27 PM
GermoOKD
GermoOKD - avatar
0
Деление по модулю называется, другими словами остаток от деления одного числа на другое.
22nd Jun 2020, 7:34 PM
Lobzov Alexey
Lobzov Alexey - avatar