My program requires me to check whether a point belongs to a list of points. I come from a Python background, where I would do it as follows:
On Python: