title: how to compare if two values are the same but different cases in python
body: <p>So the exercise I'm doing goes:</p>
  <blockquote>
  <p>086 Ask the user to enter a new password. Ask them to enter it again.
  If the two passwords match, display “Thank you”. If the letters
  are correct but in the wrong case, display th emessage “They must be in
  the same case”,otherwise display the message “Incorrect”.</p>
  </blockquote>
  <p>My attempt looks like this:</p>
  <pre><code>passw = input(&quot;Enter password: &quot;)
  passw2 = input(&quot;Enter password again: &quot;)
  if passw == passw2:
      print(&quot;Thank you.&quot;)
  elif passw != passw2 and passw.lower == passw2.lower:
      print(&quot;They must be in the same case.&quot;)
  else: 
      print(&quot;Incorrect.&quot;)
  </code></pre>
  <p>That didn't give me the result I was hoping for though.
  This should be really simple but as you can tell I'm a beginner :)
  Thank you in Advance!</p>
  <p><em>Marcel</em></p>