How to create exact polygon objects

A newbie question -
I need to create a model which includse polygonial objects (It’s a school engineering drawing project).
In particular, I need to create a hexagon, and extrude it to create a 3d hexagon. The hexagon needs to have exactly defined angles and lengths
(i.e 120 degrees between two adjacent edges).

How can I do that in blender? I gave up after a few tries and went for the infamous engineering soft. called solidworks, but I’m sure it can be done with Blender.

Please let me in on the secret…


(P.S. - and coders out there: consider making a script that a user defines an N number, and gets a perfect polygon with exact angles)

Add mesh -> circle -> 6 verts


Thanks a lot.