title: How to use *args in a Python function
body: <p>There are quite a few questions about positional/*args arguments such as <a href="https://stackoverflow.com/questions/47236272/how-to-use-args-in-python">this</a> and <a href="https://stackoverflow.com/questions/42163846/positional-argument-follows-keyword-argument">this</a>, but I cannot use their answers to solve my issue, thus the following question.</p>
  
  <p>I defined a function where it can take an unknown number of additional arguments like this</p>
  
  <pre><code>def my_func(a, b, display=False, *args):
      obj = &lt;build something from a&gt;
      obj.add(b)
      for arg in args:
          obj.add(arg)
      if display:
          print(obj)
  
      return obj
  </code></pre>
  
  <p>But when I ran it with an additional argument</p>
  
  <pre><code>my_func(a, b, display=True, c)
  </code></pre>
  
  <p>I got this error</p>
  
  <pre><code>SyntaxError: positional argument follows keyword argument
  </code></pre>
  
  <p>As I have little almost to nothing in programming, I cannot understand what the error means. Could you please help me out how to fix it?</p>