title: Python assignment as function input?
body: <p>Why is it sometimes you can give an assignment as an input into a function?</p>
  
  <pre><code>&gt; import threading
  &gt; 
  &gt; def func(a):
  &gt;     a = 0
  &gt;     print("thread function")
  &gt;     return
  &gt; 
  &gt; if __name__ =='__main__':
  &gt; 
  &gt;     t = threading.Thread(**target=func**)
  &gt;     t.start()
  </code></pre>
  
  <p>How come we can give <strong>target=f</strong> as an  input, in a normal function I am not able to do this? Why is it sometimes the inputs are assignments?</p>