I want to plot several polygon whose coordonates are in a list. I know that we can add plot or use `=+`

. But I wonder if there is a mechanism as sum() which can be iterated.

1 | initial version |

I want to plot several polygon whose coordonates are in a list. I know that we can add plot or use `=+`

. But I wonder if there is a mechanism as sum() which can be iterated.

I want to plot several polygon whose coordonates are in a list. I know that we can add plot or use `=+`

. But I wonder if there is a mechanism as sum() which can be ~~iterated.~~iterated. For instance, this gives an error

```
l=list([1, 2, 3, 5])
ll=list([10, 20, 30, 40])
sum(plot(polygon([(l[j],0),(l[j],ll[j]),(l[j+1],ll[j]),(l[j+1],0)]) for j in range(len(l)-1)))
```

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.