title: how to print list elements with square brackets in a list - Python I
body: <p>I'm new to Python, I'm trying to print an empty list with random int numbers through while loop but I'm not getting the square brackets in the output, here's my code:</p>
  <pre><code>import random
  randlist=[]
  i=0
  while i in range(0,5):
      c=random.randint(1,100)
      randlist.append(c)
      print(c,end=&quot;, &quot;)
      i=i+1
  print(&quot;&quot;)
  print(&quot;Minimum value:\t&quot;,min(randlist))
  print(&quot;Maximum value:\t&quot;,max(randlist))
  </code></pre>
  <p>the output looks like this:</p>
  <pre><code>12,31,43,58,63,
  Minimum value= 12
  Maximum value 63
  </code></pre>