Section 2. Chapitre 6
single
Challenge: Scaling
Glissez pour afficher le menu
Tâche
Glissez pour commencer à coder
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
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 6
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion