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
check4= False
check7= False
go
if pumpkin
check4= True
go
if pumpkin
check7= True
left
go
go
if check4
return 4
if check7
return 7
else
return 1
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 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!