title: Second print statement is not running in the given code?
body: <h5>I am running the following code in google colab notebook</h5>
  <pre class="lang-py prettyprint-override"><code>from itertools import permutations
  
  p = permutations([1, 2, 3])
  print(list(p))
  
  for i in list(p):
    print(i)
  </code></pre>
  <p>In the above code first,<code> print(list(p))</code> statement prints but second <code>print(i)</code> does not show any result.</p>
  <p>Can anyone know the reason why this is happening?</p>