Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What is the output of the given code?
print “2 is less than 3” unless 2>3

What is the output of the given code?
print “2 is less than 3” unless 2>3
a) 2>3
b) 2 is less than 3
c) Syntax error
d) None of the mentioned

Answer: b
Explanation: As 2<3 for unless statement to execute the condition given is false.

Join The Discussion