I am using the below format to get an output from a finite list of outputs based on a finite list of inputs but I was wondering if there was a faster/ more efficient way of exec