title: Is it possible to empty a string using functions in python?
body: <p>Is it possible to empty a string using functions in python?</p>
  
  <p>For example:</p>
  
  <pre><code>otherText="hello"
  
  def foo(text):
      text=""
  
  foo(otherText)
  print(otherText)
  </code></pre>
  
  <p>prints</p>
  
  <blockquote>
    <p>hello</p>
  </blockquote>
  
  <p>instead of an empty string. Is there a way to empty the string without assigning it a return value or using global variables?</p>