Section 2. Chapter 6
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
xandycoordinate in the polygon byscale_factor. - Construct and return a new list of scaled
(x, y)tuples.
Solution
Everything was clear?
Thanks for your feedback!
Section 2. Chapter 6
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat