I am trying to traverse twice over one reversed object, initally the for loop works but not on the second loop.
x = Subscription.objects.filter(customer_id=customer_id).order_by('-id')[:count]
tmp = reversed(x)
y = call_function(subs=tmp) # inside this function as well object is of type reversed and i am able to loop over it inside the call_function.
for j in tmp: # this loop is not running at all. here as well tmp is a reversed object
print(j)
# call_function(subs=s)
def call_function(s):
for i in s:
print(i)