C-18-Q092mediumsingle_mcq
In Python, given a = 5, b = 2, and y = a % b, what will print(y) output?
In Python, given a = 5, b = 2, and y = a % b, what will print(y) output?
- a1
- b2
- c3
- d5
ব্যাখ্যা
The % operator returns the remainder of division. Since with a remainder of 1, y equals 1.