What does heading mean?

The direction the robot faces, in degrees, measured clockwise from a fixed reference. Zero is the direction it started facing.

Also written as: headings

In a lesson

turn_right(30, angle=90) spins the robot a quarter turn clockwise and waits until it is done. turn_left(30, angle=90) goes anticlockwise. heading() is the compass: degrees clockwise from straight up the mat, which is the way the robot starts here, 0 up to 360.

Learn it

Used in

and 99 more lessons.

Do the lesson in the simulator

All glossary terms