I've been trying to run this Python code:
type = input("Please enter the file type ('video' or 'audio'): ")
while type != "video" or type != "audio":
type = input("Please enter a valid format ('video' or 'audio'): ")
if type == "video" or type == "audio":
break
The problem: Even when the conditions aren't met (e.g: the format is 'video') the while loop begins, you can break out of it by simply typing the required format again, but it's very inconvenient, any help?