g_combine = [g1**4, g1**3*g2, g1**2 * g2**2, g1 * g2**3, g2**4]
def get_combine(g_combine, g1, g2):
return g_combine
for example, if i let user input a list of variables with the given formula g_combine of two variables, is there a way i can plug in the user inputted variables into g_combine and get the values of the output list based on the formula of g_combine? for example, if g1=1, g2=0, how do i get the output of [1, 0, ...0]
I was trying to say if user inputs all g_combine, g1, and g2, is there a way to let output the desired list based on g1 and g2 without me knowing the formula at the first place? Thanks!