आउटपुट क्या होगा:
What will be the output:
print(7//2)
print(7/2)
A
3 and 3.5
B
3.5 and 3
C
7 and 2
D
3 and 2
Explanation
Let's break down the two print statements:
-
7//2: This uses floor division (//), which divides and then rounds down to the nearest integer.
So,7//2results in3. -
7/2: This uses regular division (/), which gives a float result.
So,7/2results in3.5.
Correct answer: (A) 3 and 3.5
Correct Answer: A) 3 and 3.5