comprehension set python code example
Example: set comprehension in python
# set comprihension
{i+1 for i in range(20)}
{(i,j) for j in range(4,7) for i in range(6,8)}
# set comprihension
{i+1 for i in range(20)}
{(i,j) for j in range(4,7) for i in range(6,8)}