title: Comparing 3 entered integers in python
body: <p>I'm trying to do the following:</p>
  
  <blockquote>
    <p>Write a program that reads three numbers and prints “all the same”
    if they are all the same, “all different” if they are all different,
    and “neither” otherwise.</p>
    
    <p>Your program should request 3 integers via 3 input statements. Use a
    combination of if, elif, and else to implement the algorithm that is
    needed for this problem.</p>
  </blockquote>
  
  <p>However, whenever I input all the same integers I get both 'all the same' and 'neither'. How do I make it so that my "neither" section is correct?</p>
  
  <pre><code>x=input('enter an integer:') 
  y=input('enter an integer:') 
  z=input('enter an integer:') 
  if x==y and y==z: print('all the same') 
  if not x==y and not y==z: print('all different') 
  if x==y or y==z or z==x: print('neither')
  </code></pre>