title: Is there a way to call on specific number in a range when using a for loop?
body: <p>I'm pretty new so sorry if this is a dumb question.</p>
  <p>I watching some python learning videos and was trying to do some different things using the same concepts. In the video, they demonstrated making a grid using user inputed symbols like this:</p>
  <pre><code>rows = int(input(&quot;How many rows? &quot;))
  columns = int(input(&quot;How many columns? &quot;))
  symbols = input(&quot;Please put in a symbol: &quot;)
  
  for i in range(rows):
      for j in range(columns):
          print(symbol, end=&quot;&quot;)
      print()
  </code></pre>
  <p>From this, I was thinking, &quot;Hey can I make python draw a box using user inputed number of rows and columns?&quot;</p>
  <p>I tried making this code:</p>
  <pre><code>columns = int(input(&quot;How many columns? &quot;))
  
  for i in range(rows):
      for j in range(columns)[0]:
          print(&quot;|&quot;, end=&quot;&quot;)
      for j in range(columns):
          print(&quot;_&quot;, end=&quot;&quot;)
      for j in range(columns)[-1]:
          print(&quot;|&quot;, end=&quot;&quot;)
      print()
  </code></pre>
  <p>This didn't run because it says int object is not iterable; however, I'm not sure why? Ranges are able to be used in for loops, but is it not possible to call on a specific value in the range to perform the for loop?</p>
  <p>My reasoning for my code is that whenever a number in the range of the column is 0, then I want it to print &quot;|&quot; to make the sides of the box.</p>