title: PyCharm - Shadows name from outer scope
body: <p>I am learning Python and am trying to take concepts that I learn from video tutorials and add to them. I just watched a video on If Statements and Comparisons, and I wanted to add to what was done in the video by getting input from the user. I received the &quot;shadows name 'ans' from outer scope&quot; warning and have seen others ask this question on the site, but their examples do not involve getting input from the user. Thank you in advance for your help!</p>
  <pre><code>ans = input(&quot;What color is the sky? &quot;)
  
  
  def color(ans):
      if ans == str(&quot;Blue&quot;):
          return str(&quot;Correct!&quot;)
      else:
          return str(&quot;Incorrect.&quot;)
  
  
  print(color(ans))
  </code></pre>