Answer: It is not working because it is missing the code needed to turn right.
Sentence :The robot would move forward two squares and would stay stuck there because it can not move forward nor turn left. You would need to add code for the robot to be able to turn right so that the robot can reach the goal
A.) 1/2
Half the bags are peanuts so you have 1/2 a chance of selecting s peanut.
You can place an insertion point by clicking in the field or by clicking F2 keyboard shortcut. Insertion point is usually characterized by a blinking vertical line that allows you to insert a next character that you wanted.
The <DEL> or <Delete> key makes the first character AFTER the cursor
disappear, and everything after it then moves back one space to close up
the hole.
Example:
If I have this in my document ... Most trees are green.
And my cursor is after the 'a', like this: Most trees a|re green.
Now, if I hit the <delete> key, it deletes the
'r' after the cursor, and the hole closes up,
and the cursor stays where it is: Most trees a|e green.
Def firstChars( word ):
if( word ): # make sure word has characters
print( word[ 0 ] ) # print the first character (Python 3 syntax)