आउटपुट क्या होगा:
What will be the output:
print(7//2)
print(7/2)
A)
B)
C)
D)
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//2
results in3
. -
7/2
: This uses regular division (/
), which gives a float result.
So,7/2
results in3.5
.
Correct answer: (A) 3 and 3.5