title: If, else, elif loop
body: <p>I'm trying to set up a loop when making squares from *. If box_size is even it's supposed to make a solid square. If box_size is odd it's supposed to make a square outline. This is supposed to go on till the user inputs 0 and the program stops. I've mushed the two codes together however the even code works while the odd code doesn't.</p>
  
  <pre><code>#Input
  while True:
      box_size=input("box_size:" )
      box_size=int(box_size)
      if box_size % 2:
          break
      for row in range(box_size):
        for col in range(box_size*2):
          print('*', end='')
        print()
      print()
  
  while True:
      box_size= int(input("box size: "))
      if box_size % 1:
          print('*' * box_size)
          for i in range(box_size-2):
              print ('*' + ' ' * (box_size-2) + '*')
              print('*' * box_size)
  
  #Output
  box_size:6
  ************
  ************
  ************
  ************
  ************
  ************
  
  box_size:5
  box size:
  </code></pre>