title: Test if a string contain a combination of a known string and unknown number in python
body: <p>If I have a string for example <code>line= "hello world 2"</code> and the number <code>2</code> can be any number so line could be <code>"hello world 4"</code> is there a way to test that using in operand, I am thinking of something like that  </p>
  
  <pre><code>if "world %n" in line 
  </code></pre>
  
  <p>but that is not correct syntax</p>