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. /Reflect, turn and slide points
MathematicsEasyHigh School (9–10)Geometry

Reflect, turn and slide points

You will write three small functions that move a point on a grid, and use them on a triangle.

Your tasks.

  1. In reflect, return the image of the point p in the vertical line x = a.
  2. In quarter_turn, return the image of p after one quarter turn anticlockwise about the point c.
  3. Set turned to the list of the three corners of the triangle after a half turn about the corner (1, 1). Use quarter_turn twice for each corner.

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, change the centre of the half turn to (2, 2). Predict the new list before you run it.

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
← Changing unitsEnlargement and the area scale factor →
More onGeometry

Discussion (0)

Log in to join the discussion.

Loading…

Learn it in

  1. Rotations about a pointReflection, Rotation, Translation and Enlargement

More labs on this topic

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