I’m referencing a bunch of variables from a graph and want to view them as a list of numbers.

Is there a way in the latex to force a space after each comma?

`${graph.number("Y[1]")}, ${graph.number("Y[2]")}, ${graph.number("Y[3]")}, ${graph.number("Y[4]")}, ${graph.number("Y[5]")},...`