function changes list values and not variable values in python,return [(x + 1) for x in y]