title: Global variable issue Python
body: <p>I don't if I am being stupid tonight, but for some reason this wont work in Python. I am trying to set variables in functions within python and whenever I print them I get a 'function + name of function + Hex values instead of string', can anyone give me some advice with this please.</p>
  
  <pre><code>import sys
  
  
  def serverAdd():
      global serverAdd
      if len(sys.argv) &lt;2:
          serverAdd = input('Please enter server address:')
      else:
          serverAdd = sys.argv[1]
  
  def serverPort():
      global portNumber
      if len(sys.argv) &lt;3:
          portNumber = input('Please enter port number for server:')
      else:
          portNumber = sys.argv[2]
  
  
  def serverPassword():
      global serverPassword
      if len(sys.argv)&lt; 4:
          password = input('Please enter server password:')
      else:
          password = sys.argv[3]
  
  
  
  
  serverAdd()
  print(serverAdd)
  serverPort()
  print(serverPort)
  serverPassword()
  print(serverPassword)``
  </code></pre>
  
  <p>Thanks</p>