Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Scaling | Geometric Transformations
Geometric Modelling with Python
Section 2. Chapter 6
single

single

Challenge: Scaling

Swipe to show menu

Task

Swipe to start coding

Practice your skills with geometric transformations by scaling polygons. Given a polygon represented as a list of (x, y) coordinate tuples and a scaling factor, return a new list of tuples representing the scaled polygon.

  • Multiply each x and y coordinate in the polygon by scale_factor.
  • Construct and return a new list of scaled (x, y) tuples.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 2. Chapter 6
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt