See section 12.9.3 for general polygons in space.
The polygon command takes as argument a sequence or list of points.
polygon returns and draws the polygon with the given vertices. Input:
Output:
Input: