title: Making sentence/word plural based on value
body: <p>I'm wondering if there is a preferred or at least more readable/pretty/pythonic way to make a sentence plural based on data being put into it.</p>
  
  <p><strong>Here's how I'm doing it now</strong></p>
  
  <pre><code>ret = f'Done! {deleted} entr{"y was" if deleted == 1 else "ies were"} removed.'
  </code></pre>
  
  <p>I know this works, but it just doesn't sit well when I go and read it. I've thought of either making a function or using a dict-switch (which is something I kinda like) but maybe someone knows a better way.</p>
  
  <p><strong>Solutions I've tried:</strong></p>
  
  <p><em>using a dict</em></p>
  
  <pre><code>plural = {1:'y was'}
  ret = f'Done! {deleted} entr{plural.get(deleted, "ies were")} removed.'
  </code></pre>
  
  <p><em>using a function</em></p>
  
  <pre><code>def plural(num: int):
      return 'y was' if num == 1 else 'ies were'
  </code></pre>
  
  <p><em>using boolean operators</em></p>
  
  <pre><code>ret = f'Done! {deleted} entr{deleted != 1 and "ies were" or "y was"} removed.'
  </code></pre>
  
  <p>Those are really the only other ways I can think of right now that makes sense, also the reason I want this is because I have multiple places where I'd need to make words plural. The issue is, I may want to use different wording in places and would like to keep from repeating myself with making word(s) plural for human-readable format.</p>