Here, you've used tuple comprehension.
The code is quite direct. First, you characterize BOARD_SIZE. Then, the first value is the upper bound of the primary value in the position, the same applies for the subsequent one.
Then, the output is (x,y). Here, x and y were random values in range(48)
Interested to learn Python in detail? Come and Join the Python course.
For more details, do check out the below video tutorial...