CBSE Class 12 Computer Science
Question 47 of 120
Review of Python Basics — Question 21
Back to all questions5.0 3
Reason — The expression a = 10/2 performs floating-point division, resulting in a being assigned the value 5.0. Similarly, the expression b = 10//3 performs integer division (floor division), resulting in b being assigned the value 3. The print(a, b) statement prints the values of variables a and b, which are 5.0 and 3 respectively.