title: "ValueError: invalid literal for int() with base 10:"
body: <p>I'm attempting to create a function that allows you to set the maximum height and width in blocks. I need to adjust the max height to &amp;MaxHeight= or none, and the width accordingly so they work with the API I'll be using later.</p>
  <p>I've tried adding and removing str() and int() to the input and maxh/maxw, but the error remained. I've also read <a href="https://stackoverflow.com/questions/1841565/valueerror-invalid-literal-for-int-with-base-10">ValueError: invalid literal for int() with base 10: &#39;&#39;</a>, but it seems like the thread creator is experiencing a different issue with the same error message.</p>
  <p>This is the code that is causing this error:</p>
  <pre><code>print(&quot;What is your desired max height and width in blocks? (Enter 0 for none)&quot;)
  print(&quot;&quot;)
  maxh = str(input(&quot;Height: &quot;))
  maxw = str(input(&quot;Width: &quot;))
  print(&quot;&quot;)
  
  while maxh or maxw is not None:
    if int(maxh) == 0:
      maxh = None
    elif int(maxw) == 0:
      maxw = None
    elif int(maxh) &gt; 0:
      maxh = &quot;&amp;MaxHeight=&quot; + str(maxh)
    elif int(maxw) &gt; 0:
      maxw = &quot;&amp;MaxWidth=&quot; + str(maxw)
    else:
      print(Fore.RED + &quot;The max height or width can not be less than 0. Please enter your desired max height and width in blocks? (Enter 0 for none)&quot; + Fore.WHITE)
      print(&quot;&quot;)
      maxh = str(input(&quot;Height: &quot;))
      maxw = str(input(&quot;Width: &quot;))
      print(&quot;&quot;)
  </code></pre>
  <p>Error with 24 as maxh and maxw:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;main.py&quot;, line 15, in &lt;module&gt;
      if int(maxh) == 0:
  ValueError: invalid literal for int() with base 10: '&amp;MaxHeight=24'
  </code></pre>