Hello there, I’d like to ask for some help with my python homework:
Define a list containing integer or float values. Define a python function called math_func solving a mathematic function (square or cubic by choice, i.e. y = x**2 + x + 5, where x is an input parameter and y is the returned value). Using list comprehension create a second list containing the results for calling math_func for each of the values in the first list. From the values in the two lists create and show a plot using pylab.