I have this function below:
def funcEval(self,func,nums): try: return eval(f"[({func}) for x in nums]"