I am compiling a program that, by writing the name of the subject or the name of the teacher, opens the link for the meeting, but when I write the name of a teacher, the first link inserted in the program always opens and not the one requested. That's the code:
import webbrowser
mess = input("Enter the teacher's name or subject:")
if mess == "teacher1" or "physics":
webbrowser.open("link of teacher1")
elif mess != "teacher1" or "physics":
print("Invalid name")
input("Press ENTER to exit")
elif mess == "teacher2" or "chemistry":
webbrowser.open("link of teacher2")
elif mess != "teacher2" or "chemistry":
print("Invalid name")
input("Press ENTER to exit")
elif mess == "teacher3" or "Math":
webbrowser.open("link of teacher3")
elif mess != "tacher3" or "Math":
print("Invalid name")
input("Press ENTER to exit")