title: can't assign to function call Error-Python
body: <p>I'm working on a project to create a postal bar code out of an inputted 5 digit zipcode. When I run the code, I get an error that says &quot;can't assign to function call&quot;. What is wrong with the code, and how do I fix it?</p>
  <pre><code>zipcode = input(&quot;What is your 5 digit zipcode?&quot;)
  s = zipcode.split(&quot;,&quot;)
  
  def barcode(a):                                                        
      if a==0:
          print(&quot;||:::&quot;) 
      elif a==1:
          print(&quot;:::||&quot;)
      elif a==2:
          print(&quot;::|:|&quot;)
      elif a==3:
          print(&quot;::||:&quot;)
      elif a==4:
          print(&quot;:|::|&quot;)
      elif a==5:
          print(&quot;:|:|:&quot;)
      elif a==6:
          print(&quot;:||::&quot;)
      elif a==7:
          print(&quot;|:::|&quot;)
      elif a==8:
          print(&quot;|::|:&quot;)
      elif a==9:
          print(&quot;|:|::&quot;)
  
  for barcode(a) in s:
      print(barcode(a))
  </code></pre>