HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Python Labs
  2. /Bearings and journeys
MathematicsMediumHigh School (9–10)Geometry › Constructions

Bearings and journeys

You will turn bearings and distances into positions, find back bearings, and follow a journey of two legs.

Your tasks.

  1. In back_bearing, return the bearing in the opposite direction, between 000 and 359359359.
  2. In move, return the new point (east, north) after travelling distance on the given bearing from point. Round both numbers to 222 decimal places.
  3. Set end to the final position of a boat. It starts at (0, 0). It sails 121212 km on a bearing of 303030. Then it sails 555 km on a bearing of 120120120.

Run it first, just as it is. The checker at the end prints FAIL for each task. Then do the tasks one at a time, and run the program again after each one. A Hint appears under every check that still fails.

When every line says PASS, find the distance of end from the start with hypot, and its bearing with atan2.

StemPy LabContributed by StemPy Lab
python
Loading Python runtime…

A worked solution

Have you tried it?

Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.

Log in to save
← All Labs
← Can this triangle be drawn?Finding the order of rotational symmetry →
More onGeometry › Constructions

Discussion (0)

Log in to join the discussion.

Loading…

Learn it in

  1. Scale drawings and bearingsDrawing, Constructions, Nets and Scale Drawings

More labs on this topic

  1. Can this triangle be drawn?Medium
  2. Enlargement and the area scale factorMedium
  3. Reflect, turn and slide pointsEasy
  4. Finding the order of rotational symmetryMedium
Faces, edges and verticesMedium
All labs on this topic →