C-16-Q065mediumsingle_mcq
After y = int(2.8), the value of y is:
After y = int(2.8), the value of y is:
- a2.8
- b3
- c2
- d'2'
ব্যাখ্যা
When int() receives a float, it removes the decimal portion rather than rounding. So int(2.8) discards .8 and yields 2.