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
No one could possibly know, unfortunately.
In python, spaces in the sense you're talking about, dont matter. For instance,
print ( "hello") will run the same as print("hello")
But, you cannot put a space before the print statement. That's called indenting. You are only supposed to indent code that is inside loops, if-elif-else statements, and functions.