Is there any way to optimise my if else condition in python?
if not is_text or not is_archive or not is_hidden or \
not is_system_file or not is_xhtml or not is_audio or not is_video:
is_unrecognised = True
else:
#get the value which is True out of
#is_text, is_archive, is_hidden, is_system_file,
#is_xhtml, is_audio, is_video
I'm feeling that this could be bad idea to write the if condition in this way. So I divided them in to the function and written the code. But Can we optimise my this code to feel it readable and efficient?