title: Check if a string contains substring at the end
body: <p>I would like to check if a variable contains a substring at the end.</p>
  
  <p>For example:</p>
  
  <pre><code>text = 'lord_of_pizzas_DFG'
  
  if ???:
      print('You shall pass')
  else:
      print('You shall not pass')
  </code></pre>
  
  <p>I want to know how to check if "DFG" is at the end of the string. What do I write instead of <code>???</code> to make the code print "You shall pass"?</p>