Suppose we want to generate labels with a unit circle.

What is done: I generated the first point within a unit circle and label it 1. I generated second point within a unit circle and label it 0.

Rest k-2 points I want to label in a following way: if a point lies in a half of a circle 1 -> it's labeled 1. If in a half of a circle 0 -> then it's label 0. So it means, that after generating first 2 points I need to draw a line through the centre of a circle that separates first two point. After that we compare newly generated point to this line and label it. How can I do thin in Python?