🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

आउटपुट क्या होगा:

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:

  1. 7//2: This uses floor division (//), which divides and then rounds down to the nearest integer.
    So, 7//2 results in 3.

  2. 7/2: This uses regular division (/), which gives a float result.
    So, 7/2 results in 3.5.

Correct answer: (A) 3 and 3.5

Correct Answer: A) 3 and 3.5

Latest Updates