Computer Science, asked by emmanuel633, 3 months ago

why is 1%10 in python is 1​

Answers

Answered by yashsinhtgb
0

Explanation:

It is evaluating it as 0 because it is treating it as an integer. The integer division 1/10 returns an integer 0 . Converting integer 0 to float, just returns 0.0 .

Similar questions