title: If statement in Python always return true
body: <p>I am trying to write a program which will ask my name and password before giving me access. Somehow I am not writing it right</p>
  <pre><code>print(&quot;Enter your name:&quot;)
  myName = input ()
  
  if myName == &quot;Akib&quot;:
      print(&quot;Enter your password&quot;)
  
  password = input()
  password = &quot;toma&quot;
  
  if password == &quot;toma&quot;:
      print(&quot;Access granted&quot;)
  else:
      print(&quot;Not granted&quot;)
  </code></pre>