def iloczyn_poteg_odwrotny(lista): for e in lista: if type(e) is not int and type(e) is not float: return False lista = lista[::-1] # odwracamy kolejność wynik = 1 for x, a in enumerate(lista): wynik = wynik * (a ** x) return wynik # przykładowe wykonania print(iloczyn_poteg_odwrotny([-2, -3.5, -4, 1.4])) # 392.0 print(iloczyn_poteg_odwrotny([-2, -3, -4, "A"])) # False