title: How can I get more multiple integers on the same line as input?
body: <p>how do i enter more than one value in the input search field ?</p>
  <pre><code>import re
  object = &quot;code system&quot;
  search = int(input(&quot;Enter the search keyword : &quot;))
  pattern = re.finditer(r&quot;(\w+)\s(\w+)&quot;, object)
  for loop in pattern:    
      print(loop.group(search))
  </code></pre>
  <p>this code is running perfectly but the problem is i get this error if i try to enter more than a value in the search field :</p>
  <pre><code>ValueError                                Traceback (most recent call last)
  Input In [5], in &lt;cell line: 5&gt;()
        1 import re
        3 object = &quot;code system&quot;
  ----&gt; 5 search = int(input(&quot;Enter the search keyword : &quot;))
        7 pattern = re.finditer(r&quot;(\w+)\s(\w+)&quot;, object)
        9 for loop in pattern:
  
  ValueError: invalid literal for int() with base 10: '1 2'
  </code></pre>