python suma tablicy do indeksu
def sum_up_to_index(lst, index):
return sum(lst[:index])
Powerful Penguin
def sum_up_to_index(lst, index):
return sum(lst[:index])