Python select a vertex

Is there a way to select say half of the vertices on a cube and deleting them?