title: Do python have syntactic sugar "condition?c:d"
body: <p>Java, c, c++ both have syntactic sugar like this:</p>
  
  <pre><code>int a = condition ? c : d// if condition is true , a = c, else a = d
  </code></pre>
  
  <p>Do python have similar syntactic sugar?</p>