title: How to use: python warnings.warn()?
body: <p>This is my code that I wrote:</p>
  
  <pre><code>#usr/bin/python3
  import warnings
  
  def tt():
  
      warnings.warn("123")
  
      return 10
  
  x = tt()
  
  print(x)
  </code></pre>
  
  <p>It prints:</p>
  
  <pre><code>test.py:5: UserWarning: 123
  
  warnings.warn("123")
  
  10
  </code></pre>
  
  <p>I want it to only print:</p>
  
  <pre><code>test.py:5: UserWarning: 123
  10
  </code></pre>
  
  <p>Without <code>warnings.warn("123")</code>.</p>
  
  <p>What should I do?</p>