निम्नलिखित अभिव्यक्ति का आउटपुट क्या होगा?
What will be the output of the following expression ?
print (7//2)
print (-7//2)
A)
B)
C)
D)
Explanation:
Sure!
7 // 2
gives3
because floor division rounds down.-7 // 2
gives-4
because floor division rounds down towards the more negative number.
Answer: (C) 3 -4.