title: better way than using if-else statement in python
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2802726/putting-a-simple-if-then-statement-on-one-line">Putting a simple if-then statement on one line</a>  </p>
  </blockquote>
  
  
  
  <p>I am working on a python expression and I want that expression to be compressed than using the if else statement.  </p>
  
  <pre><code>s = [1, 2, 3, 4]
  if len(s)&gt;5:
      print s.index(5)
  else:
      print 'cant print'
  </code></pre>
  
  <p>Is there a better way than using as if else statement?</p>