Indentation Error: unindent does not match any outer indentation level
<p>I can't seem to figure out what's going on here. When I compile I get the <em>does not match</em> error.</p>

<p>It gives me the error about indentation mismatch on the line with <code>bgB = 0;</code></p>

<pre><code>def calcBG(ftemp):
"This calculates the color value for the background"
variance = ftemp - justRight;   # Calculate the variance
adj = calcColorAdj(variance);   # Scale it to 8 bit int
bgList = [0,0,0]                # initialize the color array
if(variance &lt; 0):         
    bgR = 0;                    # too cold, no red         bgB = adj;                  # green and blue slide equally with adj         bgG = 255 - adj;     elif(variance == 0):            # perfect, all on green         bgR = 0;         bgB = 0;         bgG = 255;     elif(variance &gt; 0):             # too hot - no blue
    bgB = 0;
    bgR = adj;                  # red and green slide equally with Adj
    bgG = 255 - adj;
</code></pre>

<p>so after updating the code with what @Downshift suggested and adding a few elifs i got the same thing
<code>
def calcBG(ftemp):
    "This calculates the color value for the background"
    variance = ftemp - justRight;   # Calculate the variance
    adj = calcColorAdj(variance);   # Scale it to 8 bit int
    bgList = [0,0,0]                # initialize the color array
    if(variance &lt; 0):<br>
        bgR = 0;                    # too cold, no red<br>
        bgB = adj;                  # green and blue slide equally with adj<br>
        bgG = 255 - adj;<br>
    elif(variance == 0):            # perfect, all on green<br>
        bgR = 0;<br>
        bgB = 0;<br>
        bgG = 255;<br>
    elif(variance &gt; 0):             # too hot - no blue
        bgB = 0;
        bgR = adj;                  # red and green slide equally with Adj
        bgG = 255 - adj;
</code></p>

<p>ALSO: if someone could point out/explain to me exactly what i'm failing at that'd be great. because i can't seem to find my issue in this second portion. which is the same issue as the first. </p>