I have four functions and each one returns a list as a result. I want whichever of these functions that I call sequentially brings a list, not to look at the others. Thank you for your help.
def main(self):
print(self.df_list)
funcs = [(Calculate.free_two_kdv(self.df_list)),(Calculate.free_kdv(self.df_list)),(Calculate.zero_kdv(Calculate.find_largest_duplicated_value,self.df_list)),(Calculate.zero_with_other_kdv(Calculate.find_largest_duplicated_value,self.df_list))]
for func in funcs:
try:
func()
except ValueError:
break
In short, I don't want it to go to other functions at all, whichever brings results.