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. /Angles of regular polygons
MathematicsEasyHigh School (9–10)Geometry › Lines and Angles

Angles of regular polygons

You will write a short function for the angles of a regular polygon, and use it to find a polygon from its angle.

Your tasks.

  1. In interior, return the interior angle of a regular polygon with n sides, in degrees.
  2. Set table to the list of the interior angles for n from 333 to 121212, in order.
  3. Set sides to the number of sides of the regular polygon with an exterior angle of 18∘18^\circ18∘.

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 which polygon has an interior angle of 162∘162^\circ162∘.

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
← Composite and inverse functionsFaces, edges and vertices →
More onGeometry › Lines and Angles

Discussion (0)

Log in to join the discussion.

Loading…

Learn it in

  1. Triangles, quadrilaterals and polygonsGeometrical Terms and Shapes

More labs on this topic

  1. Faces, edges and verticesMedium
  2. Enlargement and the area scale factorMedium
  3. Reflect, turn and slide pointsEasy
  4. Finding the order of rotational symmetryMedium
Bearings and journeysMedium
All labs on this topic →