Question: Nested If assessment What is output from the following code? day = Thursday homework _ done = False if day = = Saturday: if homework
Nested If assessment
What is output from the following code?
day "Thursday"
homeworkdone False
if day "Saturday":
if homeworkdone:
printGo to movie"
else:
printDo your homework!"
printCant wait for the weekend"
Can't wait for the weekend
Do your homework!
Do your homework!
Can't wait for the weekend
Go to movie
Do your homework!
Can't wait for the weekend
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
