title: What's the logical value of "string" in Python?
body: <p>I erroneously wrote this code in Python:</p>
  
  <pre><code>name = input("what is your name?")
  if name == "Kamran" or "Samaneh":
      print("That is a nice name")
  else:
      print("You have a boring name ;)")
  </code></pre>
  
  <p>It always prints out "That is a nice name" even when the input is neither "Kamran" nor "Samaneh". </p>
  
  <p>Am I correct in saying that it considers "Samaneh" as a true? Why?</p>
  
  <p>By the way, I already noticed my mistake. The correct form is:</p>
  
  <pre><code>if name == "Kamran" or name == "Samaneh":
  </code></pre>