Question
What is the output of the given code?hungry=falseunless hungry print "Not hungry"else print "Hungry"end
Answer: Option D
Was this answer helpful ?
As hungry is initialized to false hence the unless condition is executed.
Output:
Not hungry
Was this answer helpful ?
Submit Solution