>>> {i*i for i in range(10)}
--> {0, 1, 4, 9, 16, 25, 36, 49, 64, 81}

>>> tuple(i*i for i in range(10))
--> (0, 1, 4, 9, 16, 25, 36, 49, 64, 81)
