I am trying to select some elements from a set, but it's giving an error: "TypeError: 'set' object is not subscriptable". The code is as follows:
t = [records[rc*j: rc*(j+1)] for j in range(5)]
In the above code, the variable "records" is a set. How to fix this error?