The output will be "2" :
x has been assigned a value of 3 and num of 17. Now, we divide num by x or 17 by 3, the answer would give the remainder after the division and i.e. 2;
% is used for getting the remainder after the division of any two numbers. So :
3 x 5 = 15;
17 - 15 = 2;

'PYTHON' 카테고리의 다른 글
print(2 == 3) (0) | 2021.03.04 |
---|---|
Python for beginners progress (0) | 2021.03.04 |
Print(x) (0) | 2021.03.04 |
Print(float(eggs)) (0) | 2021.03.04 |
+= (0) | 2021.03.03 |