can we check single condition for two or more variable in if condition in python?