title: python shorthand method for a if-else based on the function's return
body: <p>I have read examples of python shorthand-if in the stackoverflow but still can not figure out how to solve my own simple problem. 
  I want to <code>print("this is a prime number")</code> else <code>print(this is not a prime number)</code> based on the [boolean] return value of the following function:</p>
  
  <pre><code>is_prime(2) 
  </code></pre>
  
  <p>How should I write a short hand method for?</p>