title: debugging invalid syntax error iPython
body: <p>I am greeted with the following syntax error after I execute the program thanks thkang from <a href="https://stackoverflow.com/questions/15732805/choose-largest-odd-number-python">this post</a>    </p>
  
  <pre><code>You entered:  ./#
  Expanded to:  ./#
  =================
  File "./largestoddxyz.py", line 43
  else: #x and z are even
     ^
  SyntaxError: invalid syntax
  </code></pre>
  
  <p>Here is the code:<br>
  I am new to using Python and tried to fix the issue, but unfortunately, I wasn't able to.  Hopefully someone here can help me.</p>
  
  <pre><code>#!/usr/bin/env python
  # This program exmamines variables x, y, and z 
  # and prints the largest odd number among them
  
  import sys
  
  x,y,z = map(int,sys.argv[1:4])
  
  if x%2 != 0:
    if y%2 != 0:
      if z%2 != 0:
        if x &gt; y and x &gt; z: #x is the biggest odd
          print 'x is the biggest odd ' and x
        elif y &gt; z and y &gt; x: #y is the biggest odd
          print 'y is the biggest odd ' and y
        elif z &gt; x and z &gt; y: #z is the biggest odd
          print 'z is the biggest odd ' and z
  
      else: #z is even
        if x &gt; y: #x is the biggest odd
          print 'x is the biggest odd ' and x
        else: #y is the biggest odd
          print 'y is the biggest odd ' and y
  
    else: #y is even
        if z%2 != 0: #z is odd
          if x &gt; z: #x is the biggest odd
            print 'x is the biggest odd ' and x
          else: #z is the biggest odd
            print 'z is the biggest odd ' and z
        else: #y,z are even and x is the biggest odd
          print 'x is the biggest odd ' and x
  
  else: #x is even
    if y%2 != 0 and z%2 != 0: #y,z is odd
        if y &gt; z: #y is the biggest odd
          print 'y is the biggest odd ' and y
        else: #z is the biggest odd
          print 'z is the biggest odd ' and z
    else: #x and y are even
      if z%2 != 0: #z is the biggest odd
        print 'z is the biggest odd ' and z
    else: #x and z are even
      if y%2 != 0: #y is odd
        if z%2 = 0: #z is even
          print 'y is the biggest odd ' and y
  
  print 'finished'
  </code></pre>