Seksjon 2. Kapittel 6
single
Challenge: Scaling
Sveip for å vise menyen
Oppgave
Sveip for å begynne å kode
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.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 6
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår