Whenever I try to input "C.elegans_small.gff", the program gives the print statement of "unable to open". However, I want it to open. Why is this happening?
print("Gene length computation for C. elegans.")
print()
file1 = "C.elegans_small.gff"
file2 = "C.elegans.gff"
user_input = input("Input a file name: ")
while user_input != file1 or user_input != file2:
print("Unable to open file.")
user_input = input("Input a file name: ")
if user_input == file1 or user_input == file2:
break
andnot file1 or not file 2 <=> not (file1 and file2)which is always true... You meannot file1 and not file2 <=> not(file1 or file2)