I want to get the elements from a generator in inverse order like it is possible from a list.
Does an approach like [::-1]
exist to achieve that? Something like:
for x in map(int,['1','2','3'])[::-1]:
print(x)
The expected is result is:
3,2,1