I am running the following code in google colab notebook
from itertools import permutations
p = permutations([1, 2, 3])
print(list(p))
for i in list(p):
  print(i)
In the above code first, print(list(p)) statement prints but second print(i) does not show any result.
Can anyone know the reason why this is happening?
 
     
    