निम्नलिखित कथनों के बाद आउटपुट क्या होगा?
What will be the output after the following statements?
x = 2
if x < 5:
print(x)
else:
pass
A)
B)
C)
D)
Explanation:
Sure!
Since x = 2
and x < 5
is True, it prints x
, which is 2
.
Answer: (C) 2.