title: using an input variable in multiple functions in python
body: <p>I would like to know how to use the 'name' variable in the <code>entername()</code> function in the <code>hello()</code> function.</p>
  
  <p>It is an input variable, does anyone know how to use it across multiple functions?</p>
  
  <pre><code>def entername():
      name = input("Please enter your name: ")
      return
  
  def hello():
      text = "Hello " + name + ", welcome to the simulator..."
      for char in text:
          sys.stdout.write(char)
          sys.stdout.flush()
          char, time.sleep(0.1)
      print(char)  
      return
  </code></pre>