Thank you for the answer and code. Again, I'm sorry, I have near-zero knowledge of Python and its libraries so someone better qualified should comment. 
Maybe I understand what it means. Progress!
This is so confusing to me... It makes Python very powerful but every time I see something that has no equivalent in the programming languages I know, I struggle to understand it. OK, I get it. You iterate on x and y at the same time, keeping the distance constant.
What is alpha? Always 0.5?

Quote:Count number of occurrences of each value in array of non-negative ints.You are not allowed to view links. Register or Login to view.
Maybe I understand what it means. Progress!

Quote:The zip() function returns a zip object, which is an iterator of tuples where the first item in each passed iterator is paired together, and then the second item in each passed iterator are paired together etc.You are not allowed to view links. Register or Login to view.
This is so confusing to me... It makes Python very powerful but every time I see something that has no equivalent in the programming languages I know, I struggle to understand it. OK, I get it. You iterate on x and y at the same time, keeping the distance constant.
What is alpha? Always 0.5?

