title: != not working in while loop, causes infinite loop
body: <pre><code> Name=input("Enter name")
   Age=int(input("Enter Age"))
   Gender=input("Enter Gender")
   while Gender!="M"or Gender!="F"or Gender!="T":
    print("try again")
    Gender=input("Enter Gender")
   print(Name,Age,Gender)
  </code></pre>
  
  <p>the above code causes an infinite loop.</p>