I can't find what I did wrong.
def program(a, b, c): a = eval(input('Enter value a: ')) b = eval(input('Enter value b: ')) c = eval(input('Enter value c: ')) my_list = list(range(a, b+1)) if a>b: print('0') else: def power(my_list): return[ x**c for x in my_list ] my_list = x**c print(sum(power(my_list)))