Question: Here is my code: def readnumber check 4 = False check 7 = False go if pumpkin check 4 = True go if pumpkin check
Here is my code:
def readnumber
check False
check False
go
if pumpkin
check True
go
if pumpkin
check True
left
go
go
if check
return
if check
return
else
return
Result:
The robot turns left and crashes. The solution given is not correct
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
