Question: Given the following code, which has a variable named light, what will be displayed if light has the value yellow? if ( light = =

Given the following code, which has a variable named light, what will be displayed if light has the value "yellow"?
if(light == "green"):
print("You are good to go!")
else:
print("Better stay put!")
print("Drive safely.")
Multiple choice question.
Drive safely.
Better stay put!
Drive safely.
Better stay put!
You are good to go!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!